次の方法で共有


AnnotationCollection.IndexOf メソッド (String)

指定した名前の Annotation のインデックスを取得します。

名前空間:  Microsoft.AnalysisServices
アセンブリ:  Microsoft.AnalysisServices (Microsoft.AnalysisServices.dll)

構文

'宣言
Public Function IndexOf ( _
    name As String _
) As Integer
'使用
Dim instance As AnnotationCollection 
Dim name As String 
Dim returnValue As Integer 

returnValue = instance.IndexOf(name)
public int IndexOf(
    string name
)
public:
int IndexOf(
    String^ name
)
member IndexOf : 
        name:string -> int
public function IndexOf(
    name : String
) : int

パラメーター

戻り値

型: System.Int32
オブジェクトが見つかった場合は name で指定した Annotation の 0 から始まるインデックス、見つからない場合は -1 です。

関連項目

参照

AnnotationCollection クラス

IndexOf オーバーロード

Microsoft.AnalysisServices 名前空間