SfcCollection<T, K, ParentT>.ISfcCollection.GetObjectByKey Method

Uses the specified key to retrieve an object from the collection. If a matching object is not found, the object is created, and added to the collection. Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)


Private Function GetObjectByKey ( _
    key As SfcKey _
) As SfcInstance Implements ISfcCollection.GetObjectByKey
Dim instance As SfcCollection
Dim key As SfcKey
Dim returnValue As SfcInstance

returnValue = CType(instance, ISfcCollection).GetObjectByKey(key)
SfcInstance ISfcCollection.GetObjectByKey(
    SfcKey key
virtual SfcInstance^ GetObjectByKey(
    SfcKey^ key
) sealed = ISfcCollection::GetObjectByKey
private abstract GetObjectByKey : 
        key:SfcKey -> SfcInstance 
private override GetObjectByKey : 
        key:SfcKey -> SfcInstance 
JScript supports the use of explicit interface implementations, but not the declarations of new ones.


Return Value

Type: Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
The object from the collection.