共用方式為


DatabaseCollection.Item[] 屬性

定義

多載

Item[Int32]

從集合取得位於指定索引位置的 Database

Item[String]

從集合取得具有指定識別碼的 Database

Item[Int32]

從集合取得位於指定索引位置的 Database

public Microsoft.AnalysisServices.Database this[int index] { get; }
member this.Item(int) : Microsoft.AnalysisServices.Database
Default Public ReadOnly Property Item(index As Integer) As Database

參數

index
Int32

要傳回的 Database 以零起始的索引。

屬性值

指定之索引處的 Database

例外狀況

指定的索引不是有效的值 (小於零或大於項目總數)。

適用於

Item[String]

從集合取得具有指定識別碼的 Database

public Microsoft.AnalysisServices.Database this[string id] { get; }
member this.Item(string) : Microsoft.AnalysisServices.Database
Default Public ReadOnly Property Item(id As String) As Database

參數

id
String

要傳回之 Database 的識別碼。

屬性值

Database具有指定識別碼的 。

例外狀況

集合並未包含具有指定識別碼的 Database

適用於