共用方式為


ISfcCollection.GetExisting 方法

Uses the specified key to retrieve an existing item from the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Private Function GetExisting ( _
    key As SfcKey, _
    <OutAttribute> ByRef sfcInstance As SfcInstance _
) As Boolean Implements ISfcCollection.GetExisting
'用途
Dim instance As SfcCollection
Dim key As SfcKey
Dim sfcInstance As SfcInstance
Dim returnValue As Boolean

returnValue = CType(instance, ISfcCollection).GetExisting(key, _
    sfcInstance)
bool ISfcCollection.GetExisting(
    SfcKey key,
    out SfcInstance sfcInstance
)
private:
virtual bool GetExisting(
    SfcKey^ key, 
    [OutAttribute] SfcInstance^% sfcInstance
) sealed = ISfcCollection::GetExisting
private abstract GetExisting : 
        key:SfcKey * 
        sfcInstance:SfcInstance byref -> bool 
private override GetExisting : 
        key:SfcKey * 
        sfcInstance:SfcInstance byref -> bool 
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。

參數

傳回值

型別:System. . :: . .Boolean
true if the item is successfully retrieved; otherwise, false.

實作

ISfcCollection. . :: . .GetExisting(SfcKey, SfcInstance%)