Partager via


IVsBuildMacroInfo.GetBuildMacroValue Method

Retrieves the value or body of a macro based on the macro's name.

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

Syntax

'Declaration
Function GetBuildMacroValue ( _
    bstrBuildMacroName As String, _
    <OutAttribute> ByRef pbstrBuildMacroValue As String _
) As Integer
int GetBuildMacroValue(
    string bstrBuildMacroName,
    out string pbstrBuildMacroValue
)
int GetBuildMacroValue(
    [InAttribute] String^ bstrBuildMacroName, 
    [OutAttribute] String^% pbstrBuildMacroValue
)
abstract GetBuildMacroValue : 
        bstrBuildMacroName:string * 
        pbstrBuildMacroValue:string byref -> int
function GetBuildMacroValue(
    bstrBuildMacroName : String, 
    pbstrBuildMacroValue : String
) : int

Parameters

  • bstrBuildMacroName
    Type: String

    [in] String containing the name of the macro.

  • pbstrBuildMacroValue
    Type: String%

    [out] String containing the value or body of the macro.

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:

HRESULT IVsBuildMacroInfo::GetBuildMacroValue(
   [in] BSTR bstrBuildMacroName, 
   [out] BSTR *pbstrBuildMacroValue
);

.NET Framework Security

See Also

Reference

IVsBuildMacroInfo Interface

Microsoft.VisualStudio.Shell.Interop Namespace