共用方式為


AnnotationCollection.Item[] 屬性

定義

多載

Item[Int32]

取得指定索引處的 Annotation 項目。

Item[String]

取得具有指定名稱的 Annotation 項目。

Item[Int32]

取得指定索引處的 Annotation 項目。

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

參數

index
Int32

要取得之項目的以零為起始的索引。

屬性值

在指定索引的 Annotation 項目。

例外狀況

指定的索引無效。

適用於

Item[String]

取得具有指定名稱的 Annotation 項目。

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

參數

name
String

要取得的項目名稱。

屬性值

具有指定名稱的 Annotation 項目。

例外狀況

具有指定名稱的項目不存在於集合中。

適用於