ConnectionHelpers.ToScopedServerConnection Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| Nome | Descrizione |
|---|---|
| ToScopedServerConnection(SqlConnection, Urn) |
Dato un valore SqlConnection e Urn, restituisce l'ambito ServerConnection al database specificato dall'URN. |
| ToScopedServerConnection(SqlConnection, Urn) |
ToScopedServerConnection(SqlConnection, Urn)
Dato un valore SqlConnection e Urn, restituisce l'ambito ServerConnection al database specificato dall'URN.
Se l'urn non richiede un ambito di database, ServerConnection verrà limitato a qualsiasi database usato da SqlConnection di input.
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
Parametri
- sqlConnection
- SqlConnection
- urn
- Urn
Valori restituiti
Si applica a
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
Parametri
- sqlConnection
- SqlConnection
- urn
- Urn