ArgIterator Structure
Represents a variable-length argument list; that is, the parameters of a function that takes a variable number of arguments.
Assembly: mscorlib (in mscorlib.dll)
The ArgIterator type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ArgIterator(RuntimeArgumentHandle) | Initializes a new instance of the ArgIterator structure using the specified argument list. |
![]() | ArgIterator(RuntimeArgumentHandle, Void*) | Initializes a new instance of the ArgIterator structure using the specified argument list and a pointer to an item in the list. |
| Name | Description | |
|---|---|---|
![]() | End | Concludes processing of the variable-length argument list represented by this instance. |
![]() | Equals | This method is not supported, and always throws NotSupportedException. (Overrides ValueType::Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code of this object. (Overrides ValueType::GetHashCode().) |
![]() | GetNextArg() | Returns the next argument in a variable-length argument list. |
![]() | GetNextArg(RuntimeTypeHandle) | Returns the next argument in a variable-length argument list that has a specified type. |
![]() | GetNextArgType | Returns the type of the next argument. |
![]() | GetRemainingCount | Returns the number of arguments remaining in the argument list. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Developers who write compilers use the ArgIterator structure to enumerate the mandatory and optional arguments in an argument list. The ArgIterator structure is not generally useful for applications other than compilers.
The functionality in the ArgIterator structure is typically hidden in the syntax of a specific programming language. For example, in the C++ programming language you declare a variable-length argument list by specifying an ellipsis ("...") at the end of the argument list. The ArgIterator structure is useful primarily when a development language does not provide direct support for accessing variable-length parameters.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

