共用方式為


GetObjectByKey 方法

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. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

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

語法

'宣告
Function GetObjectByKey ( _
    key As SfcKey _
) As SfcInstance
'用途
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

參數

傳回值

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