SqlOlapConnectionInfoBase 类

The SqlOlapConnectionInfoBase class represents information used to connect to the instance of SQL Server.

继承层次结构

System.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() Initializes a new instance of the SqlOlapConnectionInfoBase class.
受保护方法 SqlOlapConnectionInfoBase(ConnectionType) Initializes a new instance of the SqlOlapConnectionInfoBase class.
受保护方法 SqlOlapConnectionInfoBase(SqlOlapConnectionInfoBase) Initializes a new instance of the SqlOlapConnectionInfoBase class.
受保护方法 SqlOlapConnectionInfoBase(String, ConnectionType) Initializes a new instance of the SqlOlapConnectionInfoBase class.
公共方法 SqlOlapConnectionInfoBase(String, String, String, ConnectionType) Initializes a new instance of the SqlOlapConnectionInfoBase class.

页首

属性

  名称 说明
公共属性 ConnectionString Gets the connection string.
受保护属性 ConnectionStringInternal Gets or sets the internal connection string.
公共属性 ConnectionTimeout Gets or sets the number of seconds before a connection times out.
受保护属性 ConnectionTimeoutInternal Gets or sets the internal connection timeout period in seconds.
公共属性 DatabaseName Gets or sets the database with which the connection is established.
受保护属性 DatabaseNameInternal Gets or sets the internal database name.
受保护属性 IntegratedSecurityInternal Gets or sets the Boolean property value that specifies whether the connection supports integrated security.
公共属性 Password Gets or sets the password used to establish a connection.
公共属性 QueryTimeout Gets or sets the number of seconds before a query times out.
受保护属性 QueryTimeoutInternal Gets or sets the internal query timeout period in seconds.
受保护属性 RebuildConnectionStringInternal Gets or sets a Boolean indicating whether the internal connection string must be rebuilt.
公共属性 SecurePassword Gets or sets the secure password used to establish a connection.
公共属性 ServerCaseSensitivity Gets or sets the server case sensitivity for the connection. (从 ConnectionInfoBase 继承。)
公共属性 ServerName Gets or sets the name of the instance of SQL Server.
受保护属性 ServerNameInternal Gets or sets the internal name of the instance of SQL Server.
公共属性 ServerType Gets or sets the server connection type. (从 ConnectionInfoBase 继承。)
公共属性 ServerVersion Gets or sets the version information about the instance of SQL Server. (从 ConnectionInfoBase 继承。)
公共属性 UseIntegratedSecurity Gets or sets the Boolean property value that specifies whether the connection uses integrated security.
公共属性 UserName Gets or sets the user that is connecting to the instance of SQL Server.

页首

方法

  名称 说明
受保护方法 ConnectionParmsChanged Changes the connection parameters. (覆盖 ConnectionInfoBase.ConnectionParmsChanged()。)
公共方法 CreateConnectionObject Creates the connection object and returns the IDbConnection object value.
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString Returns the object as a string value. (覆盖 ConnectionInfoBase.ToString()。)

页首

字段

  名称 说明
公共字段静态成员 DefaultConnTimeout A Int32 that specifies the default connection time out period in seconds.
公共字段静态成员 DefaultQueryTimeout A Int32 that specifies the default query time out period in seconds.
受保护字段静态成员 NoTimeOut A Int32 that specifies there is no time out.

页首

注释

The SqlOlapConnectionInfoBase class is a base class that is used in the construction of the SqlConnectionInfo class

线程安全

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

请参阅

参考

Microsoft.SqlServer.Management.Common 命名空间