Класс 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.

В начало

Свойства

  Имя Описание
Открытое свойство 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.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.