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

屬性值

Int32

相對於所產生之 (可實現) 專案的索引。

備註

此結構代表 Windows 執行階段 (WinRT) 結構的 .NET 投影 GeneratorPosition 。 如需詳細資訊,請參閱 UWP API 參考中的 GeneratorPosition

-1 是特殊值,參考專案清單開頭或結尾的虛構專案。

適用於