Metoda ISfcCollection.GetObjectByKey
Używa określonego klucz, aby pobrać obiekt z kolekcja.Jeżeli nie znaleziono odpowiedniego obiektu kolekcja, obiekt jest tworzony 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
Function GetObjectByKey ( _
key As SfcKey _
) As SfcInstance
'Użycie
Dim instance As ISfcCollection
Dim key As SfcKey
Dim returnValue As SfcInstance
returnValue = instance.GetObjectByKey(key)
SfcInstance GetObjectByKey(
SfcKey key
)
SfcInstance^ GetObjectByKey(
SfcKey^ key
)
abstract GetObjectByKey :
key:SfcKey -> SfcInstance
function GetObjectByKey(
key : SfcKey
) : SfcInstance
Parametry
- key
Typ: Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
Klucz, który identyfikuje obiekt w celu pobrania.
Wartość zwracana
Typ: Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
SfcInstance Obiekt, który reprezentuje obiekt z kolekcja.
Zobacz także