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 | Properties | Methods | Explicit Interface Implementations |
| Member | Description | |
|---|---|---|
| CommandLineArgumentAttribute(CommandLineArgumentType) |
Allows control of command line parsing.
| |
| DefaultLongName |
Returns true if the argument did not have an explicit long name specified.
| |
| DefaultShortName |
Returns true if the argument did not have an explicit short name specified.
| |
| Description | ||
| Equals(Object) | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) | |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()() | Returns the hash code for this instance. (Inherited from Attribute.) | |
| _Attribute..::.GetIDsOfNames(Guid%, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| _Attribute..::.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) | |
| _Attribute..::.GetTypeInfoCount(UInt32%) | (Inherited from Attribute.) | |
| _Attribute..::.Invoke(UInt32, Guid%, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) | |
| IsDefaultAttribute()()() | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) | |
| LongName |
The long name of the argument.
| |
| Match(Object) | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ShortName |
The short name of the argument.
| |
| ToString()()() | (Inherited from Object.) | |
| Type |
The error checking to be done on the argument.
| |
| TypeId | 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
System..::.Attribute
MbUnit.Core.Cons.CommandLine..::.CommandLineArgumentAttribute
MbUnit.Core.Cons.CommandLine..::.DefaultCommandLineArgumentAttribute
See Also
MbUnit.Core.Cons.CommandLine Namespace