Sets properties of a specific node or of the hierarchy.
Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
声明
Private Function SetProperty ( _
    itemId As UInteger, _
    propId As Integer, _
    property As Object _
) As Integer Implements IVsHierarchy.SetProperty
用法
Dim instance As FlavoredProject
Dim itemId As UInteger
Dim propId As Integer
Dim property As Object
Dim returnValue As Integer
returnValue = CType(instance, IVsHierarchy).SetProperty(itemId, _
    propId, property)
int IVsHierarchy.SetProperty(
    uint itemId,
    int propId,
    Object property
)
private:
virtual int SetProperty(
    unsigned int itemId, 
    int propId, 
    Object^ property
) sealed = IVsHierarchy::SetProperty
private abstract SetProperty : 
        itemId:uint32 * 
        propId:int * 
        property:Object -> int 
private override SetProperty : 
        itemId:uint32 * 
        propId:int * 
        property:Object -> int 
JScript does not support explicit interface implementations.
Parameters
- itemId
Type: System.UInt32
The ID of the item. 
- propId
Type: System.Int32
The ID of the property to set. 
- property
Type: System.Object
The value of the property. 
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsHierarchy.SetProperty(UInt32, Int32, Object)
Remarks
This method calls the SetProperty method, which calls the SetProperty method on the inner project.
.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.