SqlOlapConnectionInfoBase 类

SqlOlapConnectionInfoBase 类表示用于连接到 SQL Server 实例的信息。

继承层次结构

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

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

语法

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

SqlOlapConnectionInfoBase 类型公开以下成员。

构造函数

  名称 说明
受保护方法 SqlOlapConnectionInfoBase() 初始化 SqlOlapConnectionInfoBase 类的新实例。
受保护方法 SqlOlapConnectionInfoBase(ConnectionType) 初始化 SqlOlapConnectionInfoBase 类的新实例。
受保护方法 SqlOlapConnectionInfoBase(SqlOlapConnectionInfoBase) 初始化 SqlOlapConnectionInfoBase 类的新实例。
受保护方法 SqlOlapConnectionInfoBase(String, ConnectionType) 初始化 SqlOlapConnectionInfoBase 类的新实例。
公共方法 SqlOlapConnectionInfoBase(String, String, String, ConnectionType) 初始化 SqlOlapConnectionInfoBase 类的新实例。

顶部

属性

  名称 说明
公共属性 ConnectionString 获取连接字符串。
受保护属性 ConnectionStringInternal 获取或设置内部连接字符串。
公共属性 ConnectionTimeout 获取或设置连接超时之前等待的秒数。
受保护属性 ConnectionTimeoutInternal 获取或设置内部连接超时期(秒)。
公共属性 DatabaseName 获取或设置与之建立连接的数据库。
受保护属性 DatabaseNameInternal 获取或设置内部数据库名称。
受保护属性 IntegratedSecurityInternal 获取或设置布尔属性值,该值指定连接是否支持集成安全性。
公共属性 Password 获取或设置用于建立连接的密码。
公共属性 QueryTimeout 获取或设置查询超时之前等待的秒数。
受保护属性 QueryTimeoutInternal 获取或设置内部查询超时期(秒)。
受保护属性 RebuildConnectionStringInternal 获取或设置一个 Boolean,该值指示是否必须重新生成内部连接字符串。
公共属性 SecurePassword 获取或设置用于建立连接的安全密码。
公共属性 ServerCaseSensitivity 获取或设置连接的服务器区分大小写属性。 (从 ConnectionInfoBase 继承。)
公共属性 ServerName 获取或设置 SQL Server 实例的名称。
受保护属性 ServerNameInternal 获取或设置 SQL Server 实例的内部名称。
公共属性 ServerType 获取或设置服务器连接类型。 (从 ConnectionInfoBase 继承。)
公共属性 ServerVersion 获取或设置有关 SQL Server 实例的版本信息。 (从 ConnectionInfoBase 继承。)
公共属性 UseIntegratedSecurity 获取或设置布尔属性值,该值指定连接是否使用集成安全性。
公共属性 UserName 获取或设置连接到 SQL Server 实例的用户。

顶部

方法

  名称 说明
受保护方法 ConnectionParmsChanged 更改连接参数。 (覆盖 ConnectionInfoBase.ConnectionParmsChanged()。)
公共方法 CreateConnectionObject 创建连接对象并返回 IDbConnection 对象值。
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString 将对象作为字符串值返回。 (覆盖 ConnectionInfoBase.ToString()。)

顶部

字段

  名称 说明
公共字段静态成员 DefaultConnTimeout 指定默认连接超时期(秒)的 Int32
公共字段静态成员 DefaultQueryTimeout 指定默认查询超时期(秒)的 Int32
受保护字段静态成员 NoTimeOut 指定无超时的 Int32

顶部

注释

SqlOlapConnectionInfoBase 类是在 SqlConnectionInfo 类的构造中使用的基类。

线程安全

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

请参阅

参考

Microsoft.SqlServer.Management.Common 命名空间