Compartir a través de


IVsPropertyPage2.GetProperty Method

Gets the information for the specified property.

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

Syntax

'Declaration
Function GetProperty ( _
    propid As UInteger, _
    <OutAttribute> ByRef pvar As Object _
) As Integer
int GetProperty(
    uint propid,
    out Object pvar
)
int GetProperty(
    [InAttribute] unsigned int propid, 
    [OutAttribute] Object^% pvar
)
abstract GetProperty : 
        propid:uint32 * 
        pvar:Object byref -> int
function GetProperty(
    propid : uint, 
    pvar : Object
) : int

Parameters

  • propid
    Type: UInt32

    [in] Property identifier. For a list of propid values, see __VSPPPID.

  • pvar
    Type: Object%

    [out] Property information is passed back to the caller through this parameter.

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::GetProperty(
   [in] VSPPPID propid, 
   [out] VARIANT *pvar
);

.NET Framework Security

See Also

Reference

IVsPropertyPage2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace