IDtsConnectionBaseService.CreateConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new connection.
Overloads
CreateConnection(String) |
Creates a new connection using the specified connection type. |
CreateConnection(String, ConnectionManagerUIArgs) |
Creates a new connection using the specified connection type and argument. |
CreateConnection(String)
Creates a new connection using the specified connection type.
public:
System::Collections::ArrayList ^ CreateConnection(System::String ^ connectionType);
public System.Collections.ArrayList CreateConnection (string connectionType);
abstract member CreateConnection : string -> System.Collections.ArrayList
Public Function CreateConnection (connectionType As String) As ArrayList
Parameters
- connectionType
- String
The type of connection you want to put in the array.
Returns
An ArrayList containing the collection of connections created. An empty collection is returned if an error occurs or if the user cancels the request.
Applies to
CreateConnection(String, ConnectionManagerUIArgs)
Creates a new connection using the specified connection type and argument.
public:
System::Collections::ArrayList ^ CreateConnection(System::String ^ connectionType, Microsoft::SqlServer::Dts::Runtime::Design::ConnectionManagerUIArgs ^ connectionUIArg);
public System.Collections.ArrayList CreateConnection (string connectionType, Microsoft.SqlServer.Dts.Runtime.Design.ConnectionManagerUIArgs connectionUIArg);
abstract member CreateConnection : string * Microsoft.SqlServer.Dts.Runtime.Design.ConnectionManagerUIArgs -> System.Collections.ArrayList
Public Function CreateConnection (connectionType As String, connectionUIArg As ConnectionManagerUIArgs) As ArrayList
Parameters
- connectionType
- String
The type of connection to create.
- connectionUIArg
- ConnectionManagerUIArgs
The contextual information of argument regarding the new connection manager.
Returns
An ArrayList containing the collection of connections created. An empty collection is returned if an error occurs or if the user cancels the request.