共用方式為


Connections Members

Contains a collection of ConnectionManager objects that are accessed through the Package object. This class cannot be inherited.

The following tables list the members exposed by the Connections type.

Protected Fields

  名稱 Description
ms211874.protfield(zh-tw,SQL.90).gif m_unmanagedColl  (inherited from DTSReadOnlyCollectionBase )

頂端

Public Properties

  名稱 Description
ms211874.pubproperty(zh-tw,SQL.90).gif Count  Gets the number of elements contained in the DTSReadOnlyCollectionBase instance. (inherited from DTSReadOnlyCollectionBase)
ms211874.pubproperty(zh-tw,SQL.90).gif IsSynchronized  Gets a value that indicates whether access to the DTSReadOnlyCollectionBase is synchronized (thread-safe). (inherited from DTSReadOnlyCollectionBase)
ms211874.pubproperty(zh-tw,SQL.90).gif Item Returns a ConnectionManager object from the Connections collection.
ms211874.pubproperty(zh-tw,SQL.90).gif SyncRoot  Gets an object that can be used to synchronize access to the DTSReadOnlyCollectionBase. (inherited from DTSReadOnlyCollectionBase)

頂端

Public Methods

(see also Protected Methods )

  名稱 Description
ms211874.pubmethod(zh-tw,SQL.90).gif Add Adds a ConnectionManager object of the specified connection type to the Connections collection.
ms211874.pubmethod(zh-tw,SQL.90).gif Contains Returns a Boolean that indicates whether the ConnectionManager items in the collection can be accessed by using indexing without throwing an exception.
ms211874.pubmethod(zh-tw,SQL.90).gif CopyTo  (inherited from DTSReadOnlyCollectionBase )
ms211874.pubmethod(zh-tw,SQL.90).gif Equals  Overloaded. (inherited from Object )
ms211874.pubmethod(zh-tw,SQL.90).gif GetEnumerator Returns a ConnectionEnumerator for use in iterating over the Connections collection.
ms211874.pubmethod(zh-tw,SQL.90).gif GetHashCode  (inherited from Object )
ms211874.pubmethod(zh-tw,SQL.90).gif GetType  (inherited from Object )
ms211874.pubmethod(zh-tw,SQL.90).gifms211874.static(zh-tw,SQL.90).gif ReferenceEquals  (inherited from Object )
ms211874.pubmethod(zh-tw,SQL.90).gif Remove Removes a ConnectionManager object from the Connections collection.
ms211874.pubmethod(zh-tw,SQL.90).gif ToString  (inherited from Object )

頂端

Protected Methods

  名稱 Description
ms211874.protmethod(zh-tw,SQL.90).gif CreateManagedObject  (inherited from DTSReadOnlyCollectionBase )
ms211874.protmethod(zh-tw,SQL.90).gif Finalize  (inherited from Object )
ms211874.protmethod(zh-tw,SQL.90).gif GetCount  (inherited from DTSReadOnlyCollectionBase )
ms211874.protmethod(zh-tw,SQL.90).gif GetManagedEnumerator  (inherited from DTSReadOnlyCollectionBase )
ms211874.protmethod(zh-tw,SQL.90).gif MemberwiseClone  (inherited from Object )

頂端

請參閱

參考

Connections Class
Microsoft.SqlServer.Dts.Runtime Namespace