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
用法
Dim instance As VCPropertySheet
Dim Name As String
Dim Value As String
Dim returnValue As VCUserMacro
returnValue = instance.AddUserMacro(Name, _
Value)
VCUserMacro AddUserMacro(
string Name,
string Value
)
VCUserMacro^ AddUserMacro(
[InAttribute] String^ Name,
[InAttribute] String^ Value
)
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.
Permissions
- 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.