SchemaNameCollection.Item[Int32] 属性
定义
获取或设置存在于指定索引处的对象。Gets or sets the object that exists at a specified 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 zero-based index into the collection.
属性值
位于指定索引位置的对象。The object that exists at the specified index.
注解
在 C# 中,此属性是 SchemaNameCollection 类的索引器。In C#, this property is the indexer for the SchemaNameCollection class.
在 JScript 中,您可以使用某个类型定义的默认索引属性,但不能显式定义自己的属性。In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. 但是,在类上指定 expando 特性将自动提供其类型为 Object、索引类型为的默认索引属性 String 。However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.