HierarchyNode.SetProperty Method (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 ( _
    propid As Integer, _
    value As Object _
) As Integer
'使用
Dim instance As HierarchyNode
Dim propid As Integer
Dim value As Object
Dim returnValue As Integer

returnValue = instance.SetProperty(propid, _
    value)
public virtual int SetProperty(
    int propid,
    Object value
)
public:
virtual int SetProperty(
    int propid, 
    Object^ value
)
public function SetProperty(
    propid : int, 
    value : Object
) : int

Parameters

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Permissions

See Also

Reference

HierarchyNode Class

HierarchyNode Members

SetProperty Overload

Microsoft.VisualStudio.Package Namespace