SchemaNameCollection.Item[Int32] 属性

定义

获取或设置存在于指定索引处的对象。

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; }
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

集合中从零开始的索引。

属性值

位于指定索引位置的对象。

注解

在 C# 中,此属性是 SchemaNameCollection 类的索引器。

在 JScript 中,您可以使用某个类型定义的默认索引属性,但不能显式定义自己的属性。 但是,在类上指定 expando 属性会自动提供默认索引属性,其类型为 Object,其索引类型为 String

适用于