Compartilhar via


IVsPropertyPage2.SetProperty Method

Sets the information contained by the property.

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

Syntax

'Declaration
Function SetProperty ( _
    propid As UInteger, _
    var As Object _
) As Integer
int SetProperty(
    uint propid,
    Object var
)
int SetProperty(
    [InAttribute] unsigned int propid, 
    [InAttribute] Object^ var
)
abstract SetProperty : 
        propid:uint32 * 
        var:Object -> int
function SetProperty(
    propid : uint, 
    var : Object
) : int

Parameters

  • propid
    Type: UInt32

    [in] Identifier of the property. For a list of propid values, see __VSPPPID.

  • var
    Type: Object

    [in] Pointer to VARIANT that contains the property settings.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

[C++]

HRESULT IVsPropertyPage2::SetProperty(
   [in] VSPPPID propid, [in] VARIANT var
);

.NET Framework Security

See Also

Reference

IVsPropertyPage2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace