Sets a specified hierarchy property.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public Sub SetProperty ( _
itemId As Integer, _
propertyId As Integer, _
value As Object _
)
'使用
Dim instance As DataViewHierarchyAccessor
Dim itemId As Integer
Dim propertyId As Integer
Dim value As Object
instance.SetProperty(itemId, propertyId, _
value)
public void SetProperty(
int itemId,
int propertyId,
Object value
)
public:
void SetProperty(
int itemId,
int propertyId,
Object^ value
)
public function SetProperty(
itemId : int,
propertyId : int,
value : Object
)
Parameters
itemId
Type: System.Int32An item ID.
propertyId
Type: System.Int32A property ID from the __VSHPROPID enumeration.
value
Type: System.ObjectThe value for the 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