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.UInt32Item identifier of an item in the hierarchy.
propid
Type: System.Int32Identifier of the hierarchy property. For a list of propId values, see __VSHPROPID.
value
Type: System.ObjectProperty information.
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
- 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.