CodeCommentStatementCollection.Item[Int32] 屬性

定義

取得或設定位於集合中所指定索引處的 CodeCommentStatement 物件。

public:
 property System::CodeDom::CodeCommentStatement ^ default[int] { System::CodeDom::CodeCommentStatement ^ get(int index); void set(int index, System::CodeDom::CodeCommentStatement ^ value); };
public System.CodeDom.CodeCommentStatement this[int index] { get; set; }
member this.Item(int) : System.CodeDom.CodeCommentStatement with get, set
Default Public Property Item(index As Integer) As CodeCommentStatement

參數

index
Int32

要存取的集合索引。

屬性值

位於每一個有效索引的 CodeCommentStatement 物件。

例外狀況

index 參數超出集合索引的有效範圍。

備註

這個屬性是可用來存取集合的索引器。

適用於