ConnectionHelpers.ToScopedServerConnection Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| ToScopedServerConnection(SqlConnection, Urn) |
Étant donné sqlConnection et Urn, retourne l’étendue ServerConnection à la base de données spécifiée par l’Urn. |
| ToScopedServerConnection(SqlConnection, Urn) |
ToScopedServerConnection(SqlConnection, Urn)
Étant donné sqlConnection et Urn, retourne l’étendue ServerConnection à la base de données spécifiée par l’Urn.
Si l’Urn ne nécessite pas d’étendue de base de données, serverConnection est limité à la base de données utilisée par sqlConnection d’entrée.
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
Paramètres
- sqlConnection
- SqlConnection
- urn
- Urn
Retours
S’applique à
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
Paramètres
- sqlConnection
- SqlConnection
- urn
- Urn