ISfcCollection.GetObjectByKey メソッド

指定したキーを使用して、コレクションからオブジェクトを取得します。 一致するオブジェクトがコレクション内で見つからない場合は、そのオブジェクトがコレクション内に作成されます。このメンバーをコード内で直接参照しないでください。このメンバーは、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
コレクションから取得されたオブジェクトを表す SfcInstance オブジェクトです。

関連項目

参照

ISfcCollection インターフェイス

Microsoft.SqlServer.Management.Sdk.Sfc 名前空間