共用方式為


CommandLineToolSwitch.ArgumentRequired Property

Gets or sets a value that indicates whether arguments are required in the command line tool switch.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks.Xaml
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property ArgumentRequired As Boolean
public bool ArgumentRequired { get; set; }
public:
property bool ArgumentRequired {
    bool get ();
    void set (bool value);
}
member ArgumentRequired : bool with get, set
function get ArgumentRequired () : boolean 
function set ArgumentRequired (value : boolean)

Property Value

Type: System.Boolean
True if arguments are required; otherwise, false.

.NET Framework Security

See Also

Reference

CommandLineToolSwitch Class

Microsoft.Build.Tasks.Xaml Namespace