Share via


DependencyChainCollection.IndexOf メソッド (Dependency)

このメンバーをコード内で直接参照しないでください。このメンバーは、SQL Server インフラストラクチャをサポートしています。指定された Dependency オブジェクトを検索し、コレクション全体で最初に見つかったオブジェクトの 0 から始まるインデックスを返します。

名前空間:  Microsoft.SqlServer.Management.Sdk.Sfc
アセンブリ:  Microsoft.SqlServer.Management.Sdk.Sfc (Microsoft.SqlServer.Management.Sdk.Sfc.dll)

構文

'宣言
Public Function IndexOf ( _
    value As Dependency _
) As Integer
'使用
Dim instance As DependencyChainCollection 
Dim value As Dependency 
Dim returnValue As Integer 

returnValue = instance.IndexOf(value)
public int IndexOf(
    Dependency value
)
public:
int IndexOf(
    Dependency^ value
)
member IndexOf : 
        value:Dependency -> int
public function IndexOf(
    value : Dependency
) : int

パラメーター

戻り値

型: System.Int32
コレクション内で最初に見つかった value の 0 から始まるインデックスです。value が見つからない場合は、-1 です。

関連項目

参照

DependencyChainCollection クラス

IndexOf オーバーロード

Microsoft.SqlServer.Management.Sdk.Sfc 名前空間