CommaDelimitedStringCollection.Item[Int32] 属性
定义
根据索引获取或设置集合中的字符串元素。Gets or sets a string element in the collection based on the index.
public:
property System::String ^ default[int] { System::String ^ get(int index); void set(int index, System::String ^ value); };
public string this[int index] { get; set; }
member this.Item(int) : string with get, set
Default Public Property Item(index As Integer) As String
参数
- index
- Int32
集合中字符串元素的索引。The index of the string element in the collection.
属性值
集合中的字符串元素。A string element in the collection.
注解
此属性允许根据集合中的索引设置或检索集合中的字符串。This property allows a string in the collection to be set or retrieved based on its index in the collection. 此属性还会使 IsModified 属性设置为 true
。This property also causes the IsModified property to be set to true
.