CodeDirectiveCollection.Item[Int32] 属性
定义
获取或设置集合中指定索引处的 CodeDirective 对象。Gets or sets the CodeDirective object at the specified index in the collection.
public:
property System::CodeDom::CodeDirective ^ default[int] { System::CodeDom::CodeDirective ^ get(int index); void set(int index, System::CodeDom::CodeDirective ^ value); };
public System.CodeDom.CodeDirective this[int index] { get; set; }
member this.Item(int) : System.CodeDom.CodeDirective with get, set
Default Public Property Item(index As Integer) As CodeDirective
参数
- index
- Int32
要访问的索引位置。The index position to access.
属性值
索引位置处的 CodeDirective。The CodeDirective at the index position.
例外
index 在集合的有效索引位置范围外。index is outside the valid range of index positions for the collection.
注解
此属性是可用于访问集合的索引器。This property is an indexer that can be used to access the collection.