次の方法で共有


AggregationInstanceAttributeCollection.IndexOf メソッド (String)

指定した AggregationInstanceAttribute のインデックスをコレクションから取得します。

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

構文

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

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

パラメーター

戻り値

型: System.Int32
コレクションで AggregationInstanceAttribute が検索された 0 から始まるインデックスです。オブジェクトが見つからない場合は -1 です。

関連項目

参照

AggregationInstanceAttributeCollection クラス

IndexOf オーバーロード

Microsoft.AnalysisServices 名前空間