ArgIterator.GetNextArg Method (RuntimeTypeHandle)

Returns the next argument in a variable-length argument list that has a specified type.

This API is not CLS-compliant. 

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

[CLSCompliantAttribute(false)]
public TypedReference GetNextArg(
	RuntimeTypeHandle rth
)

Parameters

rth
Type: System.RuntimeTypeHandle

A runtime type handle that identifies the type of the argument to retrieve.

Return Value

Type: System.TypedReference
The next argument as a TypedReference object.

ExceptionCondition
InvalidOperationException

An attempt was made to read beyond the end of the list.

ArgumentNullException

The pointer to the remaining arguments is zero.

The iterator is automatically advanced to the next argument.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft