OlapConnectionInfo 类

此类支持 SMO 基础结构,但不能通过代码直接使用。

继承层次结构

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

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

语法

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

OlapConnectionInfo 类型公开以下成员。

构造函数

  名称 说明
公共方法 OlapConnectionInfo() 此构造函数支持 SMO 基础结构,但不能通过代码直接使用。
公共方法 OlapConnectionInfo(OlapConnectionInfo) 此构造函数支持 SMO 基础结构,但不能通过代码直接使用。

顶部

属性

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

顶部

方法

  名称 说明
受保护方法 ConnectionParmsChanged 更改连接参数。 (从 SqlOlapConnectionInfoBase 继承。)
公共方法 Copy 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 基于当前连接对象创建一个新 OlapConnectionInfo 对象。
公共方法 CreateConnectionObject 不要在您的代码中直接引用此成员。它支持 SQL Server 基础结构。 为与 SQL Server 数据库引擎 实例的连接创建一个 IDbConnection 对象。 (覆盖 SqlOlapConnectionInfoBase.CreateConnectionObject()。)
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString 将对象作为字符串值返回。 (从 SqlOlapConnectionInfoBase 继承。)

顶部

线程安全

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

请参阅

参考

Microsoft.SqlServer.Management.Common 命名空间