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 _
)
public void SetProperty(
    int itemId,
    int propertyId,
    Object value
)
public:
void SetProperty(
    int itemId, 
    int propertyId, 
    Object^ value
)
member SetProperty : 
        itemId:int * 
        propertyId:int * 
        value:Object -> unit 
public function SetProperty(
    itemId : int, 
    propertyId : int, 
    value : Object
)
Parameters
- itemId
Type: System.Int32
An item ID. 
- propertyId
Type: System.Int32
A property ID from the __VSHPROPID enumeration. 
- value
Type: System.Object
The value for the property. 
.NET Framework Security
- 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.