SqlConnectionInfo 类

The SqlConnectionInfo object represents information that is required to establish a connection to an instance of SQL Server.

继承层次结构

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

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

语法

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

SqlConnectionInfo 类型公开以下成员。

构造函数

  名称 说明
公共方法 SqlConnectionInfo() Initializes a new instance of the SqlConnectionInfo class.
公共方法 SqlConnectionInfo(String) Initializes a new instance of the SqlConnectionInfo class.
公共方法 SqlConnectionInfo(SqlConnectionInfo) Initializes a new instance of the SqlConnectionInfo class.
公共方法 SqlConnectionInfo(ServerConnection, ConnectionType) Initializes a new instance of the SqlConnectionInfo class.
公共方法 SqlConnectionInfo(String, String, String) Initializes a new instance of the SqlConnectionInfo class.

页首

属性

  名称 说明
公共属性 AdditionalParameters Gets or sets the additional parameters for the connection.
公共属性 ApplicationName Gets or sets the name of the application that is connected to the instance of SQL Server.
公共属性 ConnectionProtocol Gets or sets the network protocol used by the connection to the instance of SQL Server.
公共属性 ConnectionString Gets the connection string used when the connection is established with the instance of SQL Server. (覆盖 SqlOlapConnectionInfoBase.ConnectionString。)
受保护属性 ConnectionStringInternal Gets or sets the internal connection string. (从 SqlOlapConnectionInfoBase 继承。)
公共属性 ConnectionTimeout Gets or sets the number of seconds before a connection times out. (从 SqlOlapConnectionInfoBase 继承。)
受保护属性 ConnectionTimeoutInternal Gets or sets the internal connection timeout period in seconds. (从 SqlOlapConnectionInfoBase 继承。)
公共属性 DatabaseName Gets or sets the database with which the connection is established. (从 SqlOlapConnectionInfoBase 继承。)
受保护属性 DatabaseNameInternal Gets or sets the internal database name. (从 SqlOlapConnectionInfoBase 继承。)
公共属性 EncryptConnection Gets or sets the Boolean property value that specifies whether the connection information is encrypted.
受保护属性 IntegratedSecurityInternal Gets or sets the Boolean property value that specifies whether the connection supports integrated security. (从 SqlOlapConnectionInfoBase 继承。)
公共属性 MaxPoolSize Gets or sets the maximum number of execution threads in a thread pool that the connection will accept.
公共属性 MinPoolSize Gets or sets the minimum number of execution threads in a thread pool that the connection will accept.
公共属性 PacketSize Gets or sets the network packet size used by the connection to send and receive data in bytes.
公共属性 Password Gets or sets the password used to establish a connection. (从 SqlOlapConnectionInfoBase 继承。)
公共属性 PoolConnectionLifeTime Gets or sets the pool connection period in seconds.
公共属性 Pooled Gets or sets the SqlBoolean property value that specifies whether the connection is pooled.
公共属性 QueryTimeout Gets or sets the number of seconds before a query times out. (从 SqlOlapConnectionInfoBase 继承。)
受保护属性 QueryTimeoutInternal Gets or sets the internal query timeout period in seconds. (从 SqlOlapConnectionInfoBase 继承。)
受保护属性 RebuildConnectionStringInternal Gets or sets a Boolean indicating whether the internal connection string must be rebuilt. (从 SqlOlapConnectionInfoBase 继承。)
公共属性 SecurePassword Gets or sets the secure password used to establish a connection. (从 SqlOlapConnectionInfoBase 继承。)
公共属性 ServerCaseSensitivity Gets or sets the server case sensitivity for the connection. (从 ConnectionInfoBase 继承。)
公共属性 ServerName Gets or sets the name of the instance of SQL Server. (从 SqlOlapConnectionInfoBase 继承。)
受保护属性 ServerNameInternal Gets or sets the internal name of the instance of SQL Server. (从 SqlOlapConnectionInfoBase 继承。)
公共属性 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. (从 SqlOlapConnectionInfoBase 继承。)
公共属性 UserName Gets or sets the user that is connecting to the instance of SQL Server. (从 SqlOlapConnectionInfoBase 继承。)
公共属性 WorkstationId Gets or sets the value that uniquely identifies the client workstation.

页首

方法

  名称 说明
受保护方法 ConnectionParmsChanged Changes the connection parameters. (从 SqlOlapConnectionInfoBase 继承。)
公共方法 Copy Returns a copy of the SqlConnectionInfo object.
公共方法 CreateConnectionObject Creates a system connection object. (覆盖 SqlOlapConnectionInfoBase.CreateConnectionObject()。)
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString Returns the SqlConnectionInfo object in string format. (覆盖 SqlOlapConnectionInfoBase.ToString()。)

页首

字段

  名称 说明
公共字段静态成员 DefaultNetworkProtocol The NetworkProtocol object that specifies the default network protocol for the connection.

页首

注释

The SqlConnectionInfo object can be passed as a parameter when constructing the ServerConnection object to provide connection information.

线程安全

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

请参阅

参考

Microsoft.SqlServer.Management.Common 命名空间