Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣言
Function GetProperty ( _
propid As UInteger, _
<OutAttribute> ByRef pvar As Object _
) As Integer
'使用
Dim instance As IVsPropertyPage2
Dim propid As UInteger
Dim pvar As Object
Dim returnValue As Integer
returnValue = instance.GetProperty(propid, _
pvar)
int GetProperty(
uint propid,
out Object pvar
)
int GetProperty(
[InAttribute] unsigned int propid,
[OutAttribute] Object^% pvar
)
function GetProperty(
propid : uint,
pvar : Object
) : int
Parameters
propid
Type: System.UInt32[in]
pvar
Type: System.Object%[out]
Return Value
Type: System.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::GetProperty(
[in] VSPPPID propid,
[out] VARIANT *pvar
);
Permissions
- 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.