HierarchyNode.SetGuidProperty Method (UInt32, Int32, Guid%)

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.UInt32

    Item identifier of an item in the hierarchy.

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

See Also

Reference

HierarchyNode Class

HierarchyNode Members

SetGuidProperty Overload

Microsoft.VisualStudio.Package Namespace

SetGuidProperty