Partilhar via


IVsBuildMacroInfo.GetBuildMacroValue(String, String) Method

Definition

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

public:
 int GetBuildMacroValue(System::String ^ bstrBuildMacroName, [Runtime::InteropServices::Out] System::String ^ % pbstrBuildMacroValue);
int GetBuildMacroValue(std::wstring const & bstrBuildMacroName, [Runtime::InteropServices::Out] std::wstring const & & pbstrBuildMacroValue);
public int GetBuildMacroValue (string bstrBuildMacroName, out string pbstrBuildMacroValue);
abstract member GetBuildMacroValue : string * string -> int
Public Function GetBuildMacroValue (bstrBuildMacroName As String, ByRef pbstrBuildMacroValue As String) As Integer

Parameters

bstrBuildMacroName
String

[in] String containing the name of the macro.

pbstrBuildMacroValue
String

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

Returns

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  
);  

Applies to