Gets the GUID value of the property, given the item ID.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function GetGuidProperty ( _
itemId As UInteger, _
propid As Integer, _
<OutAttribute> 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.GetGuidProperty(itemId, _
propid, guid)
public virtual int GetGuidProperty(
uint itemId,
int propid,
out Guid guid
)
public:
virtual int GetGuidProperty(
unsigned int itemId,
int propid,
[OutAttribute] Guid% guid
)
public function GetGuidProperty(
itemId : uint,
propid : int,
guid : Guid
) : int
Parameters
itemId
Type: System.UInt32Item ID.
propid
Type: System.Int32Identifier of the property. For a list of propId values, see __VSHPROPID.
guid
Type: System.Guid%GUID of the property that is identified by the itemId.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK; otherwise, DISP_E_MEMBERNOTFOUND.
Implements
IVsUIHierarchy.GetGuidProperty(UInt32, Int32, Guid%)
IVsHierarchy.GetGuidProperty(UInt32, Int32, Guid%)
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.