ConnectionManager 클래스

Provides the information that you must have to connect to a data source. All classes that inherit from the ConnectionManager contain the same properties and methods. The ConnectionManager class isolates the implementation details of the different connection types from the runtime. This enables the runtime to interact with each connection manager in a consistent and predictable manner. Connection managers contain a set of stock properties that all connections have in common, such as the Name, ID, Description, and ConnectionString. However, each connection type has additional properties that are specific to that connection type. These can be accessed through the Properties collection.This class cannot be inherited.

상속 계층

System.Object
  Microsoft.SqlServer.Dts.Runtime.DtsObject
    Microsoft.SqlServer.Dts.Runtime.ConnectionManager

네임스페이스:  Microsoft.SqlServer.Dts.Runtime
어셈블리:  Microsoft.SqlServer.ManagedDTS(Microsoft.SqlServer.ManagedDTS.dll)

구문

‘선언
Public NotInheritable Class ConnectionManager _
    Inherits DtsObject _
    Implements IDTSObjectHost, IDTSPersist, IDTSName, IComponent,  _
    IDisposable, IDTSPropertiesProvider, IDTSPropertiesProviderEx, IDTSPackagePath, IDTSExecutionPath
‘사용 방법
Dim instance As ConnectionManager
public sealed class ConnectionManager : DtsObject, 
    IDTSObjectHost, IDTSPersist, IDTSName, IComponent, IDisposable, 
    IDTSPropertiesProvider, IDTSPropertiesProviderEx, IDTSPackagePath, IDTSExecutionPath
public ref class ConnectionManager sealed : public DtsObject, 
    IDTSObjectHost, IDTSPersist, IDTSName, IComponent, IDisposable, 
    IDTSPropertiesProvider, IDTSPropertiesProviderEx, IDTSPackagePath, IDTSExecutionPath
[<SealedAttribute>]
type ConnectionManager =  
    class 
        inherit DtsObject 
        interface IDTSObjectHost 
        interface IDTSPersist 
        interface IDTSName 
        interface IComponent 
        interface IDisposable 
        interface IDTSPropertiesProvider 
        interface IDTSPropertiesProviderEx 
        interface IDTSPackagePath 
        interface IDTSExecutionPath 
    end
public final class ConnectionManager extends DtsObject implements IDTSObjectHost, IDTSPersist, IDTSName, IComponent, IDisposable, IDTSPropertiesProvider, IDTSPropertiesProviderEx, IDTSPackagePath, IDTSExecutionPath

ConnectionManager 유형에서 다음 멤버를 표시합니다.

속성

  이름 설명
공용 속성 ConnectionString Gets or sets the connection string used to establish a connection to a data source.
공용 속성 CreationName Returns the string that is used by the runtime to create an instance of the ConnectionManager object and to add the object to the Connections collection. This property is read-only.
공용 속성 DelayValidation Gets or sets a Boolean that indicates whether package validation is delayed until the package runs.
공용 속성 Description Gets or sets the description of the ConnectionManager object.
공용 속성 HasExpressions Gets a value that indicates whether the connection manager has properties set through expressions.
공용 속성 HostType Gets an enumeration that describes the type of host that the connection is being used by. This property is read-only.
공용 속성 ID Gets the ID of the ConnectionManager. This property is read-only.
공용 속성 InnerObject Returns the specific connection type that was created. This property is read-only.
공용 속성 Name Gets or sets the name of the ConnectionManager object.
공용 속성 OfflineMode Gets or sets a value that indicates whether the connection manager is in offline mode.
공용 속성 Properties Gets a collection of property objects for the ConnectionManager. This is the method of accessing the properties of the specific connection that is being hosted by the connection manager. This property is read-only.
공용 속성 ProtectionLevel Gets or sets the level of encryption performed on sensitive data that is contained in the package.
공용 속성 Qualifier Gets or sets the qualifier for the connection manager.
공용 속성 Scope Gets the scope of the connection manager.
공용 속성 Site 인프라입니다. Gets or sets the site of the connection manager.
공용 속성 SupportsDTCTransactions Returns a Boolean that indicates if the connection supports Microsoft Distributed Transaction Coordinator (MS DTC) transactions.
공용 속성 VariableDispenser Gets the dispenser of the variables in the connection manager.
공용 속성 Variables Gets the collection of variables in the connection manager.

맨 위로 이동

메서드

  이름 설명
공용 메서드 AcquireConnection Creates an instance of the connection type.
공용 메서드 Dispose Releases the resources used by the ConnectionManager.
공용 메서드 Equals Determines whether two object instances are equal. (DtsObject에서 상속됨)
공용 메서드 GetExecutionPath Returns the execution path of the connection manager.
공용 메서드 GetExpression Returns a String that contains the expression for the specified property. Null means that no expression has been assigned.
공용 메서드 GetHashCode Returns the hash code for this instance. (DtsObject에서 상속됨)
공용 메서드 GetPackagePath Gets or sets the path of the package that the connection applies to.
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 LoadFromXML(String, IDTSEvents) This method is not callable by your application code. To load a package that has been saved as .xml, use the Application.LoadPackage method.
공용 메서드 LoadFromXML(XmlNode, IDTSEvents) This method is not callable by your application code. To load a package that has been saved as .xml, use the Application.LoadPackage method.
공용 메서드 ReleaseConnection Frees the connection established during AcquireConnection. Called at design time and runtime.
공용 메서드 SaveToXML This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method.
공용 메서드 SetExpression Assigns the specified expression to the property. Specify nullnull 참조(Visual Basic에서는 Nothing) to remove an existing expression from the property.
공용 메서드 SetQualifier Changes a qualifier on the connection manager after the connection manager has been created but before it is used in a running package.
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

이벤트

  이름 설명
공용 이벤트 Disposed Adds an event handler to listen to the Disposed event on the ConnectionManager.

맨 위로 이동

주의

A connection manager is a logical representation of a connection. At design time, in the graphical user interface, you use a connection manager to describe the physical connection that the runtime creates when the package runs. Integration Services provides different types of connection managers that enable packages to connect to a variety of data sources. For example, there is an ActiveX Data Objects (ADO) connection manager, an ADO.NET connection manager, an ODBC connection manager, and so on. For more information, see 사용자 지정 개체를 사용한 패키지 확장.

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Dts.Runtime 네임스페이스