Condividi tramite


IVsUIHierarchy.SetProperty Method (UInt32, Int32, Object)

Sets properties of a specific node or of the hierarchy.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Dichiarazione
Function SetProperty ( _
    itemid As UInteger, _
    propid As Integer, _
    var As Object _
) As Integer
'Utilizzo
Dim instance As IVsUIHierarchy
Dim itemid As UInteger
Dim propid As Integer
Dim var As Object
Dim returnValue As Integer

returnValue = instance.SetProperty(itemid, _
    propid, var)
int SetProperty(
    uint itemid,
    int propid,
    Object var
)
int SetProperty(
    [InAttribute] unsigned int itemid, 
    [InAttribute] int propid, 
    [InAttribute] Object^ var
)
abstract SetProperty : 
        itemid:uint32 * 
        propid:int * 
        var:Object -> int 
function SetProperty(
    itemid : uint, 
    propid : int, 
    var : Object
) : int

Parameters

  • itemid
    Type: System.UInt32
    [in] Item identifier of the hierarchy item whose properties are to be set. For a list of itemid values, see VSITEMID.
  • propid
    Type: System.Int32
    [in] Identifier of the hierarchy property. For a list of propid values, see __VSHPROPID.
  • var
    Type: System.Object
    [in] Variant that contains property information.

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

COM Signature

From vsshell.idl:

HRESULT IVsUIHierarchy::SetProperty(
   [in] VSITEMID itemid,
   [in] VSHPROPID propid,
   [in] VARIANT var
);

.NET Framework Security

See Also

Reference

IVsUIHierarchy Interface

IVsUIHierarchy Members

SetProperty Overload

Microsoft.VisualStudio.Shell.Interop Namespace