Прочетете на английски Редактиране

Споделяне чрез


ArgIterator Constructors

Definition

Initializes a new instance of the ArgIterator structure.

Overloads

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.

ArgIterator(RuntimeArgumentHandle)

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

Initializes a new instance of the ArgIterator structure using the specified argument list.

C#
public ArgIterator(RuntimeArgumentHandle arglist);

Parameters

arglist
RuntimeArgumentHandle

An argument list consisting of mandatory and optional arguments.

Remarks

The new ArgIterator object enumerates the argument list starting from the first optional argument.

Applies to

.NET 10 и други версии
Продукт Версии
.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

ArgIterator(RuntimeArgumentHandle, Void*)

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

Important

This API is not CLS-compliant.

Initializes a new instance of the ArgIterator structure using the specified argument list and a pointer to an item in the list.

C#
[System.CLSCompliant(false)]
public ArgIterator(RuntimeArgumentHandle arglist, void* ptr);
C#
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public ArgIterator(RuntimeArgumentHandle arglist, void* ptr);

Parameters

arglist
RuntimeArgumentHandle

An argument list consisting of mandatory and optional arguments.

ptr
Void*

A pointer to the argument in arglist to access first, or the first mandatory argument in arglist if ptr is null.

Attributes

Remarks

The new ArgIterator object enumerates the argument list starting from the argument specified by ptr, or the first mandatory argument if ptr is null.

Applies to

.NET 10 и други версии
Продукт Версии
.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