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
參數
- value
型別:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .Dependency
The Dependency object to find in the collection.
傳回值
型別:System. . :: . .Int32
The zero-based index of the first occurrence of value within the collection; -1 if value is not found.