共用方式為


IVsOutputGroup2.get_Property Method

Gets the value of a property.

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

Syntax

'宣告
Function get_Property ( _
    pszProperty As String, _
    <OutAttribute> ByRef pvar As Object _
) As Integer
'用途
Dim instance As IVsOutputGroup2
Dim pszProperty As String
Dim pvar As Object
Dim returnValue As Integer

returnValue = instance.get_Property(pszProperty, _
    pvar)
int get_Property(
    string pszProperty,
    out Object pvar
)
int get_Property(
    [InAttribute] String^ pszProperty, 
    [OutAttribute] Object^% pvar
)
abstract get_Property : 
        pszProperty:string * 
        pvar:Object byref -> int 
function get_Property(
    pszProperty : String, 
    pvar : Object
) : int

Parameters

  • pszProperty
    Type: System.String
    [in] The name of the property to get.
  • pvar
    Type: System.Object%
    [out] Pointer to the value of the property.

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:

HRESULT get_Property(
    [in] LPCOLESTR pszProperty,
    [out] VARIANT* pvar
);

.NET Framework Security

See Also

Reference

IVsOutputGroup2 Interface

IVsOutputGroup2 Members

Microsoft.VisualStudio.Shell.Interop Namespace