IndexOf 方法 (Dependency)

不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 Searches for the specified Dependency object and returns the zero-based index of the first occurrence within the entire collection.

命名空间:  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
The zero-based index of the first occurrence of value within the collection; -1 if value is not found.