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.