Класс ConnectionInfo

Contains information about the connections available on the computer. This class cannot be inherited.

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

System. . :: . .Object
  Microsoft.SqlServer.Dts.Runtime. . :: . .DtsObject
    Microsoft.SqlServer.Dts.Runtime..::..ConnectionInfo

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

Синтаксис

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

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

Свойства

  Имя Описание
Открытое свойство ConnectionContact Represents a writer-defined String. This value is read-only.
Открытое свойство ConnectionType Returns the name of the connection manager used to create the connection. This value is read-only.
Открытое свойство CreationName Returns the string that is used to create an instance of the ConnectionInfo object. This property is read-only.
Открытое свойство Description Gets or sets a description for a connection.
Открытое свойство FileName Returns the name of the file that is the data source for the connection. This value is read-only.
Открытое свойство FileNameVersionString Returns a String that contains the version number of the file. This value is read-only.
Открытое свойство IconFile Represents the name of the resource file that contains the icon to use when representing this connection type in the graphical user interface. This value is read-only.
Открытое свойство IconResource Returns the name of the .resource file or the .resx file that contains the icon to use when representing this connection type in the graphical user interface. This value is read-only.
Открытое свойство ID Represents the GUID assigned to the connection. This value is read-only.
Открытое свойство Name Gets or sets the name of the connection.
Открытое свойство UITypeName Returns the name of the connection type that is shown in the graphical user interface. This value is read-only.

В начало

Методы

  Имя Описание
Открытый метод Equals Determines whether two object instances are equal. (Производный от DtsObject.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode Returns the hash code for this instance. (Производный от DtsObject.)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

Замечания

A connection is a communication link to a data source. Integration Services supports connections to data stored in a variety of OLE DB-compliant formats. For more information, see Adding Connections Programmatically.

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

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