IVsShell::GetProperty Method (Int32, Object^)
Returns an environment property.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- propid
-
Type:
System::Int32
[in] Identifier of the environment property. For more information, see __VSSPROPID.
- pvar
-
Type:
System::Object^
[out] Pointer to a VARIANT structure containing the value of the specified property.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsShell::GetProperty(
[in] VSSPROPID propid,
[out] VARIANT *pvar
);
Each __VSSPROPID must return a VARIANT structure that contains the proper VT_ type. The caller can assume the VT_ is correct; that is, it is not required to call VariantChangeType or verify the type (beyond an ASSERT to be sure there were not header-file mismatches). This logic also applies to the caller when setting a property; the hierarchy will assume the caller has passed a VARIANT already converted to the proper VT_ type.
For more information, see IDispatch.