Compartir a través de


Argument Class

Represents an argument to a BaseProperty.

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.

Inheritance Hierarchy

System.Object
  Microsoft.Build.Framework.XamlTypes.Argument

Namespace:  Microsoft.Build.Framework.XamlTypes
Assembly:  Microsoft.Build.Framework (in Microsoft.Build.Framework.dll)

Syntax

'Declaration
Public NotInheritable Class Argument _
    Implements ISupportInitialize
public sealed class Argument : ISupportInitialize
public ref class Argument sealed : ISupportInitialize
[<Sealed>]
type Argument =  
    class 
        interface ISupportInitialize 
    end
public final class Argument implements ISupportInitialize

The Argument type exposes the following members.

Constructors

  Name Description
Public method Argument Default constructor required for XAML deserialization.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.

Top

Properties

  Name Description
Public property IsRequired Indicates whether the BaseProperty pointed to by Property must be defined so that the definition of the BaseProperty that owns this argument makes sense.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.
Public property Property Gets or sets the name of the BaseProperty that this argument refers to.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.
Public property Separator Gets or sets the string used to separate the argument value from the parent BaseProperty switch in the command line.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.

Top

Methods

  Name Description
Public method BeginInit See BeginInit.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.
Public method EndInit See EndInit.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.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

Functionally, this is just a reference to another BaseProperty. If you manually instantiate this class, call BeginInit before you set the first property of the object and EndInit after you set the last property.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Build.Framework.XamlTypes Namespace