Udostępnij za pośrednictwem


Metoda SfcCollection<T, K, ParentT>.ISfcCollection.GetExisting

Używa określonego klucz, aby pobrać istniejący element z kolekcja.Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw:  Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Składnia

'Deklaracja
Private Function GetExisting ( _
    key As SfcKey, _
    <OutAttribute> ByRef sfcInstance As SfcInstance _
) As Boolean Implements ISfcCollection.GetExisting
'Użycie
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 
Język JScript obsługuje używanie jawnych implementacji interfejsów, ale nie obsługuje deklarowania nowych.

Parametry

Wartość zwracana

Typ: System.Boolean
TRUE , jeśli element jest pomyślnie pobrane; w przeciwnym razie false.

Implementacje

ISfcCollection.GetExisting(SfcKey, SfcInstance%)