Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Used to get the connection string and the GUID of the provider.
Namespace: Microsoft.Data.Schema
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
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
Parameters
- connectionString
Type: System.String
- databaseName
Type: System.String
- provider
Type: System.Guid%
- formattedConnectionString
Type: System.String%
Return Value
Type: System.Boolean
Returns true if it was able to construct the connection string and get the correct GUID; otherwise, false.
Remarks
This information is used to add the connection to the server explorer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.