Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.