SfcCollection<T, K, ParentT>.ISfcCollection.GetObjectByKey 方法

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

命名空间:  Microsoft.SqlServer.Management.Sdk.Sfc
程序集:  Microsoft.SqlServer.Management.Sdk.Sfc(在 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
)
private:
virtual SfcInstance^ GetObjectByKey(
    SfcKey^ key
) sealed = ISfcCollection::GetObjectByKey
private abstract GetObjectByKey : 
        key:SfcKey -> SfcInstance  
private override GetObjectByKey : 
        key:SfcKey -> SfcInstance
JScript 支持使用显式接口实现,但不支持声明新显式接口实现。

参数

返回值

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

实现

ISfcCollection.GetObjectByKey(SfcKey)

请参阅

参考

SfcCollection<T, K, ParentT> 类

Microsoft.SqlServer.Management.Sdk.Sfc 命名空间