IVsBuildMacroInfo::GetBuildMacroValue Method (String^, String^)

 

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)

int GetBuildMacroValue(
	String^ bstrBuildMacroName,
	[OutAttribute] String^% pbstrBuildMacroValue
)

Parameters

bstrBuildMacroName
Type: System::String^

[in] String containing the name of the macro.

pbstrBuildMacroValue
Type: System::String^

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

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell80.idl:

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