VCPropertySheet.AddUserMacro Method
Adds a user macro to the property sheet.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
Function AddUserMacro ( _
Name As String, _
Value As String _
) As VCUserMacro
VCUserMacro AddUserMacro(
string Name,
string Value
)
VCUserMacro^ AddUserMacro(
[InAttribute] String^ Name,
[InAttribute] String^ Value
)
abstract AddUserMacro :
Name:string *
Value:string -> VCUserMacro
function AddUserMacro(
Name : String,
Value : String
) : VCUserMacro
Parameters
Name
Type: System.StringName of the macro.
Value
Type: System.StringValue of the replacement string.
Return Value
Type: Microsoft.VisualStudio.VCProjectEngine.VCUserMacro
The VCUserMacro object.
.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.