Condividi tramite


Classe SqlConnectionInfo

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Sintassi

'Dichiarazione
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public Class SqlConnectionInfo _
    Inherits SqlOlapConnectionInfoBase
'Utilizzo
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

Nel tipo SqlConnectionInfo sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico SqlConnectionInfo() Initializes a new instance of the SqlConnectionInfo class.
Metodo pubblico SqlConnectionInfo(String) Initializes a new instance of the SqlConnectionInfo class.
Metodo pubblico SqlConnectionInfo(SqlConnectionInfo) Initializes a new instance of the SqlConnectionInfo class.
Metodo pubblico SqlConnectionInfo(ServerConnection, ConnectionType) Initializes a new instance of the SqlConnectionInfo class.
Metodo pubblico SqlConnectionInfo(String, String, String) Initializes a new instance of the SqlConnectionInfo class.

Torna all'inizio

Proprietà

  Nome Descrizione
Proprietà pubblica AdditionalParameters Gets or sets the additional parameters for the connection.
Proprietà pubblica ApplicationName Gets or sets the name of the application that is connected to the instance of SQL Server.
Proprietà pubblica ConnectionProtocol Gets or sets the network protocol used by the connection to the instance of SQL Server.
Proprietà pubblica ConnectionString Gets the connection string used when the connection is established with the instance of SQL Server. Esegue l'override di SqlOlapConnectionInfoBase.ConnectionString.
Proprietà protetta ConnectionStringInternal Gets or sets the internal connection string. Ereditato da SqlOlapConnectionInfoBase.
Proprietà pubblica ConnectionTimeout Gets or sets the number of seconds before a connection times out. Ereditato da SqlOlapConnectionInfoBase.
Proprietà protetta ConnectionTimeoutInternal Gets or sets the internal connection timeout period in seconds. Ereditato da SqlOlapConnectionInfoBase.
Proprietà pubblica DatabaseName Gets or sets the database with which the connection is established. Ereditato da SqlOlapConnectionInfoBase.
Proprietà protetta DatabaseNameInternal Gets or sets the internal database name. Ereditato da SqlOlapConnectionInfoBase.
Proprietà pubblica EncryptConnection Gets or sets the Boolean property value that specifies whether the connection information is encrypted.
Proprietà protetta IntegratedSecurityInternal Gets or sets the Boolean property value that specifies whether the connection supports integrated security. Ereditato da SqlOlapConnectionInfoBase.
Proprietà pubblica MaxPoolSize Gets or sets the maximum number of execution threads in a thread pool that the connection will accept.
Proprietà pubblica MinPoolSize Gets or sets the minimum number of execution threads in a thread pool that the connection will accept.
Proprietà pubblica PacketSize Gets or sets the network packet size used by the connection to send and receive data in bytes.
Proprietà pubblica Password Gets or sets the password used to establish a connection. Ereditato da SqlOlapConnectionInfoBase.
Proprietà pubblica PoolConnectionLifeTime Gets or sets the pool connection period in seconds.
Proprietà pubblica Pooled Gets or sets the SqlBoolean property value that specifies whether the connection is pooled.
Proprietà pubblica QueryTimeout Gets or sets the number of seconds before a query times out. Ereditato da SqlOlapConnectionInfoBase.
Proprietà protetta QueryTimeoutInternal Gets or sets the internal query timeout period in seconds. Ereditato da SqlOlapConnectionInfoBase.
Proprietà protetta RebuildConnectionStringInternal Gets or sets a Boolean indicating whether the internal connection string must be rebuilt. Ereditato da SqlOlapConnectionInfoBase.
Proprietà pubblica SecurePassword Gets or sets the secure password used to establish a connection. Ereditato da SqlOlapConnectionInfoBase.
Proprietà pubblica ServerCaseSensitivity Gets or sets the server case sensitivity for the connection. Ereditato da ConnectionInfoBase.
Proprietà pubblica ServerName Gets or sets the name of the instance of SQL Server. Ereditato da SqlOlapConnectionInfoBase.
Proprietà protetta ServerNameInternal Gets or sets the internal name of the instance of SQL Server. Ereditato da SqlOlapConnectionInfoBase.
Proprietà pubblica ServerType Gets or sets the server connection type. Ereditato da ConnectionInfoBase.
Proprietà pubblica ServerVersion Gets or sets the version information about the instance of SQL Server. Ereditato da ConnectionInfoBase.
Proprietà pubblica UseIntegratedSecurity Gets or sets the Boolean property value that specifies whether the connection uses integrated security. Ereditato da SqlOlapConnectionInfoBase.
Proprietà pubblica UserName Gets or sets the user that is connecting to the instance of SQL Server. Ereditato da SqlOlapConnectionInfoBase.
Proprietà pubblica WorkstationId Gets or sets the value that uniquely identifies the client workstation.

Torna all'inizio

Metodi

  Nome Descrizione
Metodo protetto ConnectionParmsChanged Changes the connection parameters. Ereditato da SqlOlapConnectionInfoBase.
Metodo pubblico Copy Returns a copy of the SqlConnectionInfo object.
Metodo pubblico CreateConnectionObject Creates a system connection object. Esegue l'override di SqlOlapConnectionInfoBase.CreateConnectionObject().
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Returns the SqlConnectionInfo object in string format. Esegue l'override di SqlOlapConnectionInfoBase.ToString().

Torna all'inizio

Campi

  Nome Descrizione
Campo pubblicoMembro statico DefaultNetworkProtocol The NetworkProtocol object that specifies the default network protocol for the connection.

Torna all'inizio

Osservazioni

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

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Common