Sets properties whose values are GUIDs.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function SetGuidProperty ( _
itemId As UInteger, _
propid As Integer, _
ByRef guid As Guid _
) As Integer
'使用
Dim instance As HierarchyNode
Dim itemId As UInteger
Dim propid As Integer
Dim guid As Guid
Dim returnValue As Integer
returnValue = instance.SetGuidProperty(itemId, _
propid, guid)
public virtual int SetGuidProperty(
uint itemId,
int propid,
ref Guid guid
)
public:
virtual int SetGuidProperty(
unsigned int itemId,
int propid,
Guid% guid
)
public function SetGuidProperty(
itemId : uint,
propid : int,
guid : Guid
) : int
Parameters
itemId
Type: System.UInt32Item identifier of an item in the hierarchy.
propid
Type: System.Int32Identifier of the hierarchy property. For a list of propId values, see __VSHPROPID.
guid
Type: System.Guid%The GUID to set.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsUIHierarchy.SetGuidProperty(UInt32, Int32, Guid%)
IVsHierarchy.SetGuidProperty(UInt32, Int32, Guid%)
Remarks
This method is called by the environment to set a specific property on the hierarchy.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.