Método UserInteractionServices.TryConstructConnectionStringAndProvider

Usado para obter a seqüência de conexão e o GUID do provedor.

Namespace:  Microsoft.Data.Schema
Assembly:  Microsoft.Data.Schema (em Microsoft.Data.Schema.dll)

Sintaxe

'Declaração
Public Overridable Function TryConstructConnectionStringAndProvider ( _
    connectionString As String, _
    databaseName As String, _
    <OutAttribute> ByRef provider As Guid, _
    <OutAttribute> ByRef formattedConnectionString As String _
) As Boolean
public virtual bool TryConstructConnectionStringAndProvider(
    string connectionString,
    string databaseName,
    out Guid provider,
    out string formattedConnectionString
)
public:
virtual bool TryConstructConnectionStringAndProvider(
    String^ connectionString, 
    String^ databaseName, 
    [OutAttribute] Guid% provider, 
    [OutAttribute] String^% formattedConnectionString
)
abstract TryConstructConnectionStringAndProvider : 
        connectionString:string * 
        databaseName:string * 
        provider:Guid byref * 
        formattedConnectionString:string byref -> bool 
override TryConstructConnectionStringAndProvider : 
        connectionString:string * 
        databaseName:string * 
        provider:Guid byref * 
        formattedConnectionString:string byref -> bool 
public function TryConstructConnectionStringAndProvider(
    connectionString : String, 
    databaseName : String, 
    provider : Guid, 
    formattedConnectionString : String
) : boolean

Parâmetros

Valor de retorno

Tipo: System.Boolean
Retorna true se ele conseguiu construir a seqüência de conexão e obter o GUID correto; Caso contrário, false.

Comentários

Essas informações são usadas para adicionar a conexão para o server explorer.

Segurança do .NET Framework

Consulte também

Referência

UserInteractionServices Classe

Namespace Microsoft.Data.Schema