GeneratorPosition.Index 属性

定义

获取或设置与已生成(已实现)的项相关的索引。

public:
 property int Index { int get(); void set(int value); };
public int Index { get; set; }
member this.Index : int with get, set
Public Property Index As Integer

属性值

相对于生成的 (实现) 项的索引。

注解

此结构表示Windows 运行时 (WinRT) GeneratorPosition结构的 .NET 投影。 有关详细信息,请参阅 UWP API 参考中的 GeneratorPosition

-1 是一个特殊值,它引用项目列表开头或末尾的虚构项。

适用于