Gets properties of a given node or hierarchy.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function GetProperty ( _
itemId As UInteger, _
propId As Integer, _
<OutAttribute> ByRef propVal As Object _
) As Integer
'使用
Dim instance As HierarchyNode
Dim itemId As UInteger
Dim propId As Integer
Dim propVal As Object
Dim returnValue As Integer
returnValue = instance.GetProperty(itemId, _
propId, propVal)
public virtual int GetProperty(
uint itemId,
int propId,
out Object propVal
)
public:
virtual int GetProperty(
unsigned int itemId,
int propId,
[OutAttribute] Object^% propVal
)
public function GetProperty(
itemId : uint,
propId : int,
propVal : Object
) : int
Parameters
itemId
Type: System.UInt32Item identifier of an item in the hierarchy.
propId
Type: System.Int32Identifier of the property. For a list of values, see __VSHPROPID.
propVal
Type: System.Object%Property value.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK; otherwise, DISP_E_MEMBERNOTFOUND.
Implements
IVsUIHierarchy.GetProperty(UInt32, Int32, Object%)
IVsHierarchy.GetProperty(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.