Retrieves a hierarchy property.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public Function GetProperty ( _
itemId As Integer, _
propertyId As Integer _
) As Object
'使用
Dim instance As DataViewHierarchyAccessor
Dim itemId As Integer
Dim propertyId As Integer
Dim returnValue As Object
returnValue = instance.GetProperty(itemId, _
propertyId)
public Object GetProperty(
int itemId,
int propertyId
)
public:
Object^ GetProperty(
int itemId,
int propertyId
)
public function GetProperty(
itemId : int,
propertyId : int
) : Object
Parameters
itemId
Type: System.Int32An item ID.
propertyId
Type: System.Int32A property ID from the __VSHPROPID enumeration.
Return Value
Type: System.Object
Returns the value of the specified hierarchy property.
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.
See Also
Reference
DataViewHierarchyAccessor Class