Classe SqlConnectionInfo

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Common
Assembly :  Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class SqlConnectionInfo _
    Inherits SqlOlapConnectionInfoBase
'Utilisation
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

Le type SqlConnectionInfo expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique SqlConnectionInfo() () () () Initializes a new instance of the SqlConnectionInfo class.
Méthode publique SqlConnectionInfo(String) Initializes a new instance of the SqlConnectionInfo class.
Méthode publique SqlConnectionInfo(SqlConnectionInfo) Initializes a new instance of the SqlConnectionInfo class.
Méthode publique SqlConnectionInfo(ServerConnection, ConnectionType) Initializes a new instance of the SqlConnectionInfo class.
Méthode publique SqlConnectionInfo(String, String, String) Initializes a new instance of the SqlConnectionInfo class.

Haut de la page

Propriétés

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

Haut de la page

Méthodes

  Nom Description
Méthode protégée ConnectionParmsChanged Changes the connection parameters. (hérité de SqlOlapConnectionInfoBase.)
Méthode publique Copy Returns a copy of the SqlConnectionInfo object.
Méthode publique CreateConnectionObject Creates a system connection object. (remplace SqlOlapConnectionInfoBase. . :: . .CreateConnectionObject() () () ().)
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString Returns the SqlConnectionInfo object in string format. (remplace SqlOlapConnectionInfoBase. . :: . .ToString() () () ().)

Haut de la page

Champs

  Nom Description
Champ publicMembre statique DefaultNetworkProtocol The NetworkProtocol object that specifies the default network protocol for the connection.

Haut de la page

Notes

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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.