共用方式為


IVsBuildableProjectCfg2.GetBuildCfgProperty Method

Retrieve the value of a given build configuration property.

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

Syntax

'宣告
Function GetBuildCfgProperty ( _
    propid As Integer, _
    <OutAttribute> ByRef pvar As Object _
) As Integer
'用途
Dim instance As IVsBuildableProjectCfg2
Dim propid As Integer
Dim pvar As Object
Dim returnValue As Integer

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

Parameters

  • pvar
    Type: System.Object%
    [out] Pointer to a variant containing the property value.

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

.NET Framework Security

See Also

Reference

IVsBuildableProjectCfg2 Interface

IVsBuildableProjectCfg2 Members

Microsoft.VisualStudio.Shell.Interop Namespace