Share via


VCPropertySheet.AddUserMacro(String, String) Method

Definition

Adds a user macro to the property sheet.

public:
 Microsoft::VisualStudio::VCProjectEngine::VCUserMacro ^ AddUserMacro(System::String ^ Name, System::String ^ Value);
public:
 Microsoft::VisualStudio::VCProjectEngine::VCUserMacro ^ AddUserMacro(Platform::String ^ Name, Platform::String ^ Value);
Microsoft::VisualStudio::VCProjectEngine::VCUserMacro AddUserMacro(std::wstring const & Name, std::wstring const & Value);
[System.Runtime.InteropServices.DispId(612)]
public Microsoft.VisualStudio.VCProjectEngine.VCUserMacro AddUserMacro (string Name, string Value);
[<System.Runtime.InteropServices.DispId(612)>]
abstract member AddUserMacro : string * string -> Microsoft.VisualStudio.VCProjectEngine.VCUserMacro
Public Function AddUserMacro (Name As String, Value As String) As VCUserMacro

Parameters

Name
String

Name of the macro.

Value
String

Value of the replacement string.

Returns

The VCUserMacro object.

Attributes

Applies to