BuildMacroRequestEventArgs.AddMacro Method
Adds a macro to the list that will appear in the Macros dialog box from the Build Events property page.
Namespace: Microsoft.VisualStudio.Data.Schema.Package.Project
Assembly: Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)
Syntax
'Declaration
Public Sub AddMacro ( _
macroName As String, _
priority As Integer, _
macroValue As String _
)
public void AddMacro(
string macroName,
int priority,
string macroValue
)
public:
void AddMacro(
String^ macroName,
int priority,
String^ macroValue
)
member AddMacro :
macroName:string *
priority:int *
macroValue:string -> unit
public function AddMacro(
macroName : String,
priority : int,
macroValue : String
)
Parameters
- macroName
Type: System.String
The name of the macro.
- priority
Type: System.Int32
The priority of the addition. A lower value indicates a higher priority.
- macroValue
Type: System.String
The value of the macro.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
BuildMacroRequestEventArgs Class
Microsoft.VisualStudio.Data.Schema.Package.Project Namespace