Compartilhar via


Classe Connections

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

Hierarquia de herança

System.Object
  Microsoft.SqlServer.Dts.Runtime.DTSReadOnlyCollectionBase
    Microsoft.SqlServer.Dts.Runtime.Connections

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (em Microsoft.SqlServer.ManagedDTS.dll)

Sintaxe

'Declaração
Public NotInheritable Class Connections _
    Inherits DTSReadOnlyCollectionBase
'Uso
Dim instance As Connections
public sealed class Connections : DTSReadOnlyCollectionBase
public ref class Connections sealed : public DTSReadOnlyCollectionBase
[<SealedAttribute>]
type Connections =  
    class 
        inherit DTSReadOnlyCollectionBase 
    end
public final class Connections extends DTSReadOnlyCollectionBase

O tipo Connections expõe os membros a seguir.

Propriedades

  Nome Descrição
Propriedade pública Count Gets the number of elements contained in the DTSReadOnlyCollectionBase instance. (Herdado de DTSReadOnlyCollectionBase.)
Propriedade pública IsSynchronized Gets a value that indicates whether access to the DTSReadOnlyCollectionBase is synchronized (thread-safe). (Herdado de DTSReadOnlyCollectionBase.)
Propriedade pública Item Gets a ConnectionManager object from the Connections collection.
Propriedade pública SyncRoot Gets an object that can be used to synchronize access to the DTSReadOnlyCollectionBase. (Herdado de DTSReadOnlyCollectionBase.)

Início

Métodos

  Nome Descrição
Método público Add Adds a ConnectionManager object of the specified connection type to the Connections collection.
Método público Contains Indicates whether the ConnectionManager items in the collection can be accessed by using indexing without throwing an exception.
Método público CopyTo Copies the entire DTSReadOnlyCollectionBase to a compatible one-dimensional array, starting at the specified index of the target array. (Herdado de DTSReadOnlyCollectionBase.)
Método público Equals (Herdado de Object.)
Método público GetEnumerator Returns a ConnectionEnumerator for use in iterating over the Connections collection.
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método público Join Joins a connection to the list of connections.
Método público Remove Removes a ConnectionManager object from the Connections collection.
Método público ToString (Herdado de Object.)

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Dts.Runtime