Partager via


Interface IDtsConnectionService

Provides a service that can be used by various user interfaces to create new connections.

Espace de noms :  Microsoft.SqlServer.Dts.Runtime.Design
Assembly :  Microsoft.SqlServer.Dts.Design (en Microsoft.SqlServer.Dts.Design.dll)

Syntaxe

'Déclaration
Public Interface IDtsConnectionService _
    Inherits IDtsConnectionBaseService
'Utilisation
Dim instance As IDtsConnectionService
public interface IDtsConnectionService : IDtsConnectionBaseService
public interface class IDtsConnectionService : IDtsConnectionBaseService
type IDtsConnectionService =  
    interface 
        interface IDtsConnectionBaseService 
    end
public interface IDtsConnectionService extends IDtsConnectionBaseService

Le type IDtsConnectionService expose les membres suivants.

Propriétés

  Nom Description
Propriété publique IsDesignerOnline Gets a value that indicates whether the designer is working in an online mode. (hérité de IDtsConnectionBaseService.)

Haut de la page

Méthodes

  Nom Description
Méthode publique AddConnectionToPackage Adds existing connections to a package designer so that the designer is aware of a new connection manager
Méthode publique CreateConnection(String) Creates a new connection using the specified connection type. (hérité de IDtsConnectionBaseService.)
Méthode publique CreateConnection(String, ConnectionManagerUIArgs) Creates a new connection using the specified connection type and argument. (hérité de IDtsConnectionBaseService.)
Méthode publique CreateConnectionFromDataSource Displays a list of existing data sources and allows users to create connection managers based on data sources.
Méthode publique EditConnection(ConnectionManager) Edits a specific existing connection and returns a value that indicates whether the connection was modified.
Méthode publique EditConnection(ConnectionManager, ConnectionManagerUIArgs) Edits a specific existing connection and returns a value to indicate whether the connection was modified.
Méthode publique GetAMOObject Retrieves the AMO object for an OLAP connection.
Méthode publique GetConnections Retrieves all connection managers in the current package. (hérité de IDtsConnectionBaseService.)
Méthode publique GetConnectionsOfType Returns all connections of the specified type found in the current package. (hérité de IDtsConnectionBaseService.)
Méthode publique GetDataSource Retrieves the DataSource object for a connection.
Méthode publique SetDataSourceID Allows the connection string for a run-time connection manager to be in synchronization with the connection string of a Data Source object, if both are in the same project. This synchronization is done whenever a package is opened in the designer.
Méthode publique SetReferencedProject Sets the referenced project to a connection manager.

Haut de la page

Notes

This service can be used by any kind of user interface, whether that be a task, connection manager, transform, log provider, or others.

Exemples

The following code example shows the use of the IDtsConnectionService.

IDtsConnectionService dtsConnectionService = serviceProvider.GetService(typeof(IDtsConnectionService)) as IDtsConnectionService;

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Dts.Runtime.Design