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

Uses the specified key to retrieve an existing object from the collection. If a matching object is not found, the object is created, and added to the collection. 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。

命名空间:  Microsoft.SqlServer.Management.Sdk.Sfc
程序集:  Microsoft.SqlServer.Management.Sdk.Sfc(在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

语法

声明
Protected MustOverride Function GetObjectByKey ( _
    key As K _
) As T
用法
Dim key As K
Dim returnValue As T

returnValue = Me.GetObjectByKey(key)
protected abstract T GetObjectByKey(
    K key
)
protected:
virtual T GetObjectByKey(
    K key
) abstract
abstract GetObjectByKey : 
        key:'K -> 'T 
protected abstract function GetObjectByKey(
    key : K
) : T

参数

  • key
    类型:K
    The key that identifies the object to get.

返回值

类型:T
An object from the collection.

请参阅

参考

SfcCollection<T, K, ParentT> 类

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