مشاركة عبر


ISfcCollection.GetObjectByKey Method

Uses the specified key to retrieve an object from the collection. If a matching object is not found in the collection, the object is created in 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)

Syntax

'Declaration
Function GetObjectByKey ( _
    key As SfcKey _
) As SfcInstance
'Usage
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

Parameters

Return Value

Type: Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
An SfcInstance object that represents the object from the collection.

See Also

Reference

ISfcCollection Interface

Microsoft.SqlServer.Management.Sdk.Sfc Namespace