SfcCollection<T, K, ParentT>.ISfcCollection.GetObjectByKey メソッド
指定したキーを使用して、コレクションからオブジェクトを取得します。 一致するオブジェクトが見つからない場合は、オブジェクトが作成され、コレクションに追加されます。このメンバーをコード内で直接参照しないでください。このメンバーは、SQL Server インフラストラクチャをサポートしています。
名前空間: Microsoft.SqlServer.Management.Sdk.Sfc
アセンブリ: Microsoft.SqlServer.Management.Sdk.Sfc (Microsoft.SqlServer.Management.Sdk.Sfc.dll)
構文
'宣言
Private Function GetObjectByKey ( _
key As SfcKey _
) As SfcInstance Implements ISfcCollection.GetObjectByKey
'使用
Dim instance As SfcCollection
Dim key As SfcKey
Dim returnValue As SfcInstance
returnValue = CType(instance, ISfcCollection).GetObjectByKey(key)
SfcInstance ISfcCollection.GetObjectByKey(
SfcKey key
)
private:
virtual SfcInstance^ GetObjectByKey(
SfcKey^ key
) sealed = ISfcCollection::GetObjectByKey
private abstract GetObjectByKey :
key:SfcKey -> SfcInstance
private override GetObjectByKey :
key:SfcKey -> SfcInstance
JScript は明示的なインターフェイス実装の使用をサポートしていますが、新規の宣言はサポートしていません。
パラメーター
- key
型: Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
取得するオブジェクトを識別するキーです。
戻り値
型: Microsoft.SqlServer.Management.Sdk.Sfc.SfcInstance
コレクションから取得されたオブジェクトです。
実装
ISfcCollection.GetObjectByKey(SfcKey)