Edit

Share via


ArgIterator.GetNextArg Method

Definition

Returns the next argument in a variable-length argument list.

Overloads

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.

GetNextArg()

Source:
ArgIterator.cs
Source:
ArgIterator.cs
Source:
ArgIterator.cs
Source:
ArgIterator.cs

Important

This API is not CLS-compliant.

Returns the next argument in a variable-length argument list.

[System.CLSCompliant(false)]
public TypedReference GetNextArg();

Returns

The next argument as a TypedReference object.

Attributes

Exceptions

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

Remarks

The iterator is automatically advanced to the next argument.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetNextArg(RuntimeTypeHandle)

Source:
ArgIterator.cs
Source:
ArgIterator.cs
Source:
ArgIterator.cs
Source:
ArgIterator.cs

Important

This API is not CLS-compliant.

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

[System.CLSCompliant(false)]
public TypedReference GetNextArg(RuntimeTypeHandle rth);

Parameters

rth
RuntimeTypeHandle

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

Returns

The next argument as a TypedReference object.

Attributes

Exceptions

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

The pointer to the remaining arguments is zero.

Remarks

The iterator is automatically advanced to the next argument.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1