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.

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。