ArgIterator.GetNextArg 方法

定义

返回可变长度参数列表中的下一个参数。

重载

名称 说明
GetNextArg()

返回可变长度参数列表中的下一个参数。

GetNextArg(RuntimeTypeHandle)

返回具有指定类型的可变长度参数列表中的下一个参数。

GetNextArg()

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

重要

此 API 不符合 CLS。

返回可变长度参数列表中的下一个参数。

public:
 TypedReference GetNextArg();
[System.CLSCompliant(false)]
public TypedReference GetNextArg();
[<System.CLSCompliant(false)>]
member this.GetNextArg : unit -> TypedReference
Public Function GetNextArg () As TypedReference

返回

下一个 TypedReference 参数作为对象。

属性

例外

尝试在列表末尾之外读取。

注解

迭代器会自动升级到下一个参数。

适用于

GetNextArg(RuntimeTypeHandle)

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

重要

此 API 不符合 CLS。

返回具有指定类型的可变长度参数列表中的下一个参数。

public:
 TypedReference GetNextArg(RuntimeTypeHandle rth);
[System.CLSCompliant(false)]
public TypedReference GetNextArg(RuntimeTypeHandle rth);
[<System.CLSCompliant(false)>]
member this.GetNextArg : RuntimeTypeHandle -> TypedReference
Public Function GetNextArg (rth As RuntimeTypeHandle) As TypedReference

参数

rth
RuntimeTypeHandle

一个运行时类型句柄,用于标识要检索的参数的类型。

返回

下一个 TypedReference 参数作为对象。

属性

例外

尝试在列表末尾之外读取。

指向剩余参数的指针为零。

注解

迭代器会自动升级到下一个参数。

适用于