Allows control of command line parsing. Attach this attribute to instance fields of types used as the destination of command line argument parsing.

Namespace: MbUnit.Core.Cons.CommandLine
Assembly:  MbUnit.Framework (in MbUnit.Framework.dll)

Syntax

         
 C#  Visual Basic  Visual C++ 
[AttributeUsageAttribute(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class CommandLineArgumentAttribute : Attribute
<AttributeUsageAttribute(AttributeTargets.Field, AllowMultiple := False, Inherited := True)> _
Public Class CommandLineArgumentAttribute _
	Inherits Attribute
[AttributeUsageAttribute(AttributeTargets::Field, AllowMultiple = false, Inherited = true)]
public ref class CommandLineArgumentAttribute : public Attribute

Members

               
 All Members  Constructors Public method  Properties Public property  Methods Public method  Explicit Interface Implementations Explicit interface implemetation 
 Public

 Protected
 Instance

 Static Static member
 Declared

 Inherited
 XNA Framework Only Supported by the XNA Framework

 .NET Compact Framework Only Supported by the .NET Compact Framework

 MemberDescription
Public methodCommandLineArgumentAttribute(CommandLineArgumentType)
Allows control of command line parsing.
Public propertyDefaultLongName
Returns true if the argument did not have an explicit long name specified.
Public propertyDefaultShortName
Returns true if the argument did not have an explicit short name specified.
Public propertyDescription
Public methodEquals(Object)
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Protected methodFinalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode()()()
Returns the hash code for this instance.
(Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute..::.GetIDsOfNames(Guid%, IntPtr, UInt32, UInt32, IntPtr) (Inherited from Attribute.)
Public methodGetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
Explicit interface implemetationPrivate method_Attribute..::.GetTypeInfo(UInt32, UInt32, IntPtr) (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute..::.GetTypeInfoCount(UInt32%) (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute..::.Invoke(UInt32, Guid%, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) (Inherited from Attribute.)
Public methodIsDefaultAttribute()()()
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public propertyLongName
The long name of the argument.
Public methodMatch(Object)
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Protected methodMemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public propertyShortName
The short name of the argument.
Public methodToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Public propertyType
The error checking to be done on the argument.
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)

Remarks

Command line parsing code from Peter Halam, http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=62a0f27e-274e-4228-ba7f-bc0118ecc41e

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    MbUnit.Core.Cons.CommandLine..::.CommandLineArgumentAttribute
      MbUnit.Core.Cons.CommandLine..::.DefaultCommandLineArgumentAttribute

See Also