Freigeben über


IVsUIHierarchy.GetGuidProperty Method (UInt32, Int32, Guid%)

Identifies the "type" of a particular node.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function GetGuidProperty ( _
    itemid As UInteger, _
    propid As Integer, _
    <OutAttribute> ByRef pguid As Guid _
) As Integer
'Usage
Dim instance As IVsUIHierarchy
Dim itemid As UInteger
Dim propid As Integer
Dim pguid As Guid
Dim returnValue As Integer

returnValue = instance.GetGuidProperty(itemid, _
    propid, pguid)
int GetGuidProperty(
    uint itemid,
    int propid,
    out Guid pguid
)
int GetGuidProperty(
    [InAttribute] unsigned int itemid, 
    [InAttribute] int propid, 
    [OutAttribute] Guid% pguid
)
abstract GetGuidProperty : 
        itemid:uint32 * 
        propid:int * 
        pguid:Guid byref -> int 
function GetGuidProperty(
    itemid : uint, 
    propid : int, 
    pguid : Guid
) : int

Parameters

  • itemid
    Type: System.UInt32
    [in] Identifier of hierarchy item whose property is to be retrieved. For a list of itemid values, see VSITEMID.
  • propid
    Type: System.Int32
    [in] Identifier of the property of the given hierarchy item. For a list of propid values, see __VSHPROPID.
  • pguid
    Type: System.Guid%
    [out] Pointer to a GUID property specified in propid.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsHierarchy.GetGuidProperty(UInt32, Int32, Guid%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIHierarchy::GetGuidProperty(
   [in] VSITEMID itemid,
   [in] VSHPROPID propid,
   [out] GUID *pguid
);

Use this method to pass any properties whose values are GUIDs. The GetProperty method cannot be used to pass GUID properties.

.NET Framework Security

See Also

Reference

IVsUIHierarchy Interface

IVsUIHierarchy Members

GetGuidProperty Overload

Microsoft.VisualStudio.Shell.Interop Namespace