DataUtilities.CreateExplorerConnection Method (String, Boolean, Boolean)
Creates a data explorer connection.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Common
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function CreateExplorerConnection ( _
connectionString As String, _
encryptedString As Boolean, _
allowInvalidDatabaseName As Boolean _
) As DataExplorerConnection
'Usage
Dim connectionString As String
Dim encryptedString As Boolean
Dim allowInvalidDatabaseName As Boolean
Dim returnValue As DataExplorerConnection
returnValue = DataUtilities.CreateExplorerConnection(connectionString, _
encryptedString, allowInvalidDatabaseName)
public static DataExplorerConnection CreateExplorerConnection(
string connectionString,
bool encryptedString,
bool allowInvalidDatabaseName
)
public:
static DataExplorerConnection^ CreateExplorerConnection(
String^ connectionString,
bool encryptedString,
bool allowInvalidDatabaseName
)
public static function CreateExplorerConnection(
connectionString : String,
encryptedString : boolean,
allowInvalidDatabaseName : boolean
) : DataExplorerConnection
static member CreateExplorerConnection :
connectionString:string *
encryptedString:bool *
allowInvalidDatabaseName:bool -> DataExplorerConnection
Parameters
- connectionString
Type: System.String
The connection string
- encryptedString
Type: System.Boolean
Specifies whether the string is encrypted
- allowInvalidDatabaseName
Type: System.Boolean
Specifies whether to allow an invalid database name
Return Value
Type: Microsoft.VisualStudio.Data.DataExplorerConnection
Remarks
This is a SQL Server-specific create connection method -- only a SQL provider is allowed.
.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.