Compartilhar via


Classe SqlConnectionInfo

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

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxe

'Declaração
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class SqlConnectionInfo _
    Inherits SqlOlapConnectionInfoBase
'Uso
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

O tipo SqlConnectionInfo expõe os membros a seguir.

Construtores

  Nome Descrição
Método público SqlConnectionInfo() () () () Initializes a new instance of the SqlConnectionInfo class.
Método público SqlConnectionInfo(String) Initializes a new instance of the SqlConnectionInfo class.
Método público SqlConnectionInfo(SqlConnectionInfo) Initializes a new instance of the SqlConnectionInfo class.
Método público SqlConnectionInfo(ServerConnection, ConnectionType) Initializes a new instance of the SqlConnectionInfo class.
Método público SqlConnectionInfo(String, String, String) Initializes a new instance of the SqlConnectionInfo class.

Início

Propriedades

  Nome Descrição
Propriedade pública ApplicationName Gets or sets the name of the application that is connected to the instance of SQL Server.
Propriedade pública ConnectionProtocol Gets or sets the network protocol used by the connection to the instance of SQL Server.
Propriedade pública ConnectionString Gets the connection string used when the connection is established with the instance of SQL Server. (Substitui SqlOlapConnectionInfoBase. . :: . .ConnectionString.)
Propriedade protegida ConnectionStringInternal Gets or sets the internal connection string. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade pública ConnectionTimeout Gets or sets the number of seconds before a connection times out. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade protegida ConnectionTimeoutInternal Gets or sets the internal connection timeout period in seconds. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade pública DatabaseName Gets or sets the database with which the connection is established. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade protegida DatabaseNameInternal Gets or sets the internal database name. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade pública EncryptConnection Gets or sets the Boolean property value that specifies whether the connection information is encrypted.
Propriedade protegida IntegratedSecurityInternal Gets or sets the Boolean property value that specifies whether the connection supports integrated security. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade pública MaxPoolSize Gets or sets the maximum number of execution threads in a thread pool that the connection will accept.
Propriedade pública MinPoolSize Gets or sets the minimum number of execution threads in a thread pool that the connection will accept.
Propriedade pública PacketSize Gets or sets the network packet size used by the connection to send and receive data in bytes.
Propriedade pública Password Gets or sets the password used to establish a connection. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade pública PoolConnectionLifeTime Gets or sets the pool connection period in seconds.
Propriedade pública Pooled Gets or sets the SqlBoolean property value that specifies whether the connection is pooled.
Propriedade pública QueryTimeout Gets or sets the number of seconds before a query times out. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade protegida QueryTimeoutInternal Gets or sets the internal query timeout period in seconds. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade protegida RebuildConnectionStringInternal Gets or sets a Boolean indicating whether the internal connection string must be rebuilt. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade pública SecurePassword Gets or sets the secure password used to establish a connection. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade pública ServerCaseSensitivity Gets or sets the server case sensitivity for the connection. (Herdado de ConnectionInfoBase.)
Propriedade pública ServerName Gets or sets the name of the instance of SQL Server. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade protegida ServerNameInternal Gets or sets the internal name of the instance of SQL Server. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade pública ServerType Gets or sets the server connection type. (Herdado de ConnectionInfoBase.)
Propriedade pública ServerVersion Gets or sets the version information about the instance of SQL Server. (Herdado de ConnectionInfoBase.)
Propriedade pública UseIntegratedSecurity Gets or sets the Boolean property value that specifies whether the connection uses integrated security. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade pública UserName Gets or sets the user that is connecting to the instance of SQL Server. (Herdado de SqlOlapConnectionInfoBase.)
Propriedade pública WorkstationId Gets or sets the value that uniquely identifies the client workstation.

Início

Métodos

  Nome Descrição
Método protegido ConnectionParmsChanged Changes the connection parameters. (Herdado de SqlOlapConnectionInfoBase.)
Método público Copy Returns a copy of the SqlConnectionInfo object.
Método público CreateConnectionObject Creates a system connection object. (Substitui SqlOlapConnectionInfoBase. . :: . .CreateConnectionObject() () () ().)
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público ToString Returns the SqlConnectionInfo object in string format. (Substitui SqlOlapConnectionInfoBase. . :: . .ToString() () () ().)

Início

Campos

  Nome Descrição
Campo públicoMembro estático DefaultNetworkProtocol The NetworkProtocol object that specifies the default network protocol for the connection.

Início

Comentários

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

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.