共用方式為


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

Return Value

Type: Microsoft.VisualStudio.VCProjectEngine.VCUserMacro
The VCUserMacro object.

.NET Framework Security

See Also

Reference

VCPropertySheet Interface

Microsoft.VisualStudio.VCProjectEngine Namespace