言語

ConnectionHelpers.ToScopedServerConnection メソッド

定義

オーバーロード

名前 説明
ToScopedServerConnection(SqlConnection, Urn)

SqlConnection と Urn を指定すると、Urn で指定されたデータベースをスコープとする ServerConnection が返されます。
Urn にデータベース スコープが必要ない場合、ServerConnection は、入力 SqlConnection が使用しているデータベースにスコープが設定されます。

ToScopedServerConnection(SqlConnection, Urn)

ToScopedServerConnection(SqlConnection, Urn)

SqlConnection と Urn を指定すると、Urn で指定されたデータベースをスコープとする ServerConnection が返されます。
Urn にデータベース スコープが必要ない場合、ServerConnection は、入力 SqlConnection が使用しているデータベースにスコープが設定されます。

public static Microsoft.SqlServer.Management.Common.ServerConnection ToScopedServerConnection(this Microsoft.Data.SqlClient.SqlConnection sqlConnection, Microsoft.SqlServer.Management.Sdk.Sfc.Urn urn);
static member ToScopedServerConnection : Microsoft.Data.SqlClient.SqlConnection * Microsoft.SqlServer.Management.Sdk.Sfc.Urn -> Microsoft.SqlServer.Management.Common.ServerConnection
<Extension()>
Public Function ToScopedServerConnection (sqlConnection As SqlConnection, urn As Urn) As ServerConnection

パラメーター

sqlConnection
SqlConnection
urn
Urn

返品

適用対象

ToScopedServerConnection(SqlConnection, Urn)

public static Microsoft.SqlServer.Management.Common.ServerConnection ToScopedServerConnection(this System.Data.SqlClient.SqlConnection sqlConnection, Microsoft.SqlServer.Management.Sdk.Sfc.Urn urn);
static member ToScopedServerConnection : System.Data.SqlClient.SqlConnection * Microsoft.SqlServer.Management.Sdk.Sfc.Urn -> Microsoft.SqlServer.Management.Common.ServerConnection
<Extension()>
Public Function ToScopedServerConnection (sqlConnection As SqlConnection, urn As Urn) As ServerConnection

パラメーター

sqlConnection
SqlConnection
urn
Urn

返品

適用対象