共用方式為


GetExistingObjectByKey 方法

Uses the specified key to retrieve an existing object from the collection. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

命名空間:  Microsoft.SqlServer.Management.Sdk.Sfc
組件:  Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)

語法

'宣告
Protected Overrides Function GetExistingObjectByKey ( _
    key As K _
) As T
'用途
Dim key As K
Dim returnValue As T

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

參數

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

傳回值

型別:T
An object from the collection or nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing) if a matching object was not found.