HierarchyNode.SetProperty Method (UInt32, Int32, Object)

Sets properties of a specific node, or of the hierarchy.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function SetProperty ( _
    itemId As UInteger, _
    propid As Integer, _
    value As Object _
) As Integer
'使用
Dim instance As HierarchyNode
Dim itemId As UInteger
Dim propid As Integer
Dim value As Object
Dim returnValue As Integer

returnValue = instance.SetProperty(itemId, _
    propid, value)
public virtual int SetProperty(
    uint itemId,
    int propid,
    Object value
)
public:
virtual int SetProperty(
    unsigned int itemId, 
    int propid, 
    Object^ value
)
public function SetProperty(
    itemId : uint, 
    propid : int, 
    value : Object
) : 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.SetProperty(UInt32, Int32, Object)
IVsHierarchy.SetProperty(UInt32, Int32, Object)

Permissions

See Also

Reference

HierarchyNode Class

HierarchyNode Members

SetProperty Overload

Microsoft.VisualStudio.Package Namespace