Condividi tramite


Interfaccia IDtsConnectionService

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

Spazio dei nomi  Microsoft.SqlServer.Dts.Runtime.Design
Assembly:  Microsoft.SqlServer.Dts.Design (in Microsoft.SqlServer.Dts.Design.dll)

Sintassi

'Dichiarazione
Public Interface IDtsConnectionService _
    Inherits IDtsConnectionBaseService
'Utilizzo
Dim instance As IDtsConnectionService
public interface IDtsConnectionService : IDtsConnectionBaseService
public interface class IDtsConnectionService : IDtsConnectionBaseService
type IDtsConnectionService =  
    interface 
        interface IDtsConnectionBaseService 
    end
public interface IDtsConnectionService extends IDtsConnectionBaseService

Nel tipo IDtsConnectionService sono esposti i membri seguenti.

Proprietà

  Nome Descrizione
Proprietà pubblica IsDesignerOnline Gets a value that indicates whether the designer is working in an online mode. Ereditato da IDtsConnectionBaseService.

In alto

Metodi

  Nome Descrizione
Metodo pubblico AddConnectionToPackage Adds existing connections to a package designer so that the designer is aware of a new connection manager
Metodo pubblico CreateConnection(String) Creates a new connection using the specified connection type. Ereditato da IDtsConnectionBaseService.
Metodo pubblico CreateConnection(String, ConnectionManagerUIArgs) Creates a new connection using the specified connection type and argument. Ereditato da IDtsConnectionBaseService.
Metodo pubblico CreateConnectionFromDataSource Displays a list of existing data sources and allows users to create connection managers based on data sources.
Metodo pubblico EditConnection(ConnectionManager) Edits a specific existing connection and returns a value that indicates whether the connection was modified.
Metodo pubblico EditConnection(ConnectionManager, ConnectionManagerUIArgs) Edits a specific existing connection and returns a value to indicate whether the connection was modified.
Metodo pubblico GetAMOObject Retrieves the AMO object for an OLAP connection.
Metodo pubblico GetConnections Retrieves all connection managers in the current package. Ereditato da IDtsConnectionBaseService.
Metodo pubblico GetConnectionsOfType Returns all connections of the specified type found in the current package. Ereditato da IDtsConnectionBaseService.
Metodo pubblico GetDataSource Retrieves the DataSource object for a connection.
Metodo pubblico 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.
Metodo pubblico SetReferencedProject Sets the referenced project to a connection manager.

In alto

Osservazioni

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

Esempi

The following code example shows the use of the IDtsConnectionService.

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

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Dts.Runtime.Design