Класс ConnectionInfos

Contains information about all the connections on the computer. The collection contains ConnectionInfo objects that provide the details about each connection. The collection is available using the Application class. This class cannot be inherited.

Иерархия наследования

System. . :: . .Object
  Microsoft.SqlServer.Dts.Runtime. . :: . .DTSReadOnlyCollectionBase
    Microsoft.SqlServer.Dts.Runtime..::..ConnectionInfos

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public NotInheritable Class ConnectionInfos _
    Inherits DTSReadOnlyCollectionBase
'Применение
Dim instance As ConnectionInfos
public sealed class ConnectionInfos : DTSReadOnlyCollectionBase
public ref class ConnectionInfos sealed : public DTSReadOnlyCollectionBase
[<SealedAttribute>]
type ConnectionInfos =  
    class
        inherit DTSReadOnlyCollectionBase
    end
public final class ConnectionInfos extends DTSReadOnlyCollectionBase

Тип ConnectionInfos обеспечивает доступ к следующим элементам.

Свойства

  Имя Описание
Открытое свойство Count Gets the number of elements contained in the DTSReadOnlyCollectionBase instance. (Производный от DTSReadOnlyCollectionBase.)
Открытое свойство IsSynchronized Gets a value that indicates whether access to the DTSReadOnlyCollectionBase is synchronized (thread-safe). (Производный от DTSReadOnlyCollectionBase.)
Открытое свойство Item Retrieves the ConnectionInfo object from the collection by the name, index, ID, or identity.
Открытое свойство SyncRoot Gets an object that can be used to synchronize access to the DTSReadOnlyCollectionBase. (Производный от DTSReadOnlyCollectionBase.)

В начало

Методы

  Имя Описание
Открытый метод Contains Returns a Boolean that indicates whether the ConnectionInfo items in the ConnectionInfos collection can be accessed by using the name, index, ID, or identity parameter as the index.
Открытый метод CopyTo Copies the entire DTSReadOnlyCollectionBase to a compatible one-dimensional array, starting at the specified index of the target array. (Производный от DTSReadOnlyCollectionBase.)
Защищенный метод CreateManagedObject Инфраструктура. (Производный от DTSReadOnlyCollectionBase.)
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Защищенный метод GetCount Инфраструктура. (Производный от DTSReadOnlyCollectionBase.)
Открытый метод GetEnumerator Returns a ConnectionInfoEnumerator that can iterate through the ConnectionInfos collection.
Открытый метод GetHashCode (Производный от Object.)
Защищенный метод GetManagedEnumerator Инфраструктура. (Производный от DTSReadOnlyCollectionBase.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

Поля

  Имя Описание
Защищенное поле m_unmanagedColl Инфраструктура. (Производный от DTSReadOnlyCollectionBase.)

В начало

Замечания

The ConnectionInfo class contains the specific information about a connection on the computer, and the ConnectionInfos collection is the collection that contains the information about all the connections on the computer.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.