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
'宣告
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.String
Name of the macro.
- Value
Type: System.String
Value 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.