ConnectionInfoBase 类

ConnectionInfoBase 对象是在 SqlOlapConnectionInfoBase 类的构造中使用的基类,它表示用于连接到 SQL Server 实例的信息。

继承层次结构

Object
  Microsoft.SqlServer.Management.Common.ConnectionInfoBase
    Microsoft.SqlServer.Management.Common.SqlOlapConnectionInfoBase

命名空间:  Microsoft.SqlServer.Management.Common
程序集:  Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)

语法

声明
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public MustInherit Class ConnectionInfoBase
用法
Dim instance As ConnectionInfoBase
[SerializableAttribute]
[ComVisibleAttribute(false)]
public abstract class ConnectionInfoBase
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class ConnectionInfoBase abstract
[<AbstractClassAttribute>]
[<SerializableAttribute>]
[<ComVisibleAttribute(false)>]
type ConnectionInfoBase =  class end
public abstract class ConnectionInfoBase

ConnectionInfoBase 类型公开以下成员。

构造函数

  名称 说明
受保护方法 ConnectionInfoBase() 初始化 ConnectionInfoBase 类的新实例。
受保护方法 ConnectionInfoBase(ConnectionInfoBase) 基于指定的对象初始化 ConnectionInfoBase 类的新实例。
受保护方法 ConnectionInfoBase(ConnectionType) 使用指定的连接类型初始化 ConnectionInfoBase 类的新实例。

顶部

属性

  名称 说明
公共属性 ServerCaseSensitivity 获取或设置连接的服务器区分大小写属性。
公共属性 ServerType 获取或设置服务器连接类型。
公共属性 ServerVersion 获取或设置有关 SQL Server 实例的版本信息。

顶部

方法

  名称 说明
受保护方法 ConnectionParmsChanged 在派生类中重写时,使您能够指定连接参数更改时的自定义操作。
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString 将对象作为字符串值返回。 (覆盖 ObjectToString。)

顶部

注释

当从 ConnectionInfoBase继承时 , 必须忽略 ConnectionParmsChanged 成员。

线程安全

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

请参阅

参考

Microsoft.SqlServer.Management.Common 命名空间