Clase SqlConnectionInfo
The SqlConnectionInfo object represents information that is required to establish a connection to an instance of SQL Server.
Jerarquía de herencia
System.Object
Microsoft.SqlServer.Management.Common.ConnectionInfoBase
Microsoft.SqlServer.Management.Common.SqlOlapConnectionInfoBase
Microsoft.SqlServer.Management.Common.SqlConnectionInfo
Espacio de nombres: Microsoft.SqlServer.Management.Common
Ensamblado: Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxis
'Declaración
<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
El tipo SqlConnectionInfo expone los siguientes miembros.
Constructores
Nombre | Descripción | |
---|---|---|
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. |
Arriba
Propiedades
Nombre | Descripción | |
---|---|---|
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. (Invalida SqlOlapConnectionInfoBase.ConnectionString.) | |
ConnectionStringInternal | Gets or sets the internal connection string. (Se hereda de SqlOlapConnectionInfoBase.) | |
ConnectionTimeout | Gets or sets the number of seconds before a connection times out. (Se hereda de SqlOlapConnectionInfoBase.) | |
ConnectionTimeoutInternal | Gets or sets the internal connection timeout period in seconds. (Se hereda de SqlOlapConnectionInfoBase.) | |
DatabaseName | Gets or sets the database with which the connection is established. (Se hereda de SqlOlapConnectionInfoBase.) | |
DatabaseNameInternal | Gets or sets the internal database name. (Se hereda de 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. (Se hereda de 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. (Se hereda de 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. (Se hereda de SqlOlapConnectionInfoBase.) | |
QueryTimeoutInternal | Gets or sets the internal query timeout period in seconds. (Se hereda de SqlOlapConnectionInfoBase.) | |
RebuildConnectionStringInternal | Gets or sets a Boolean indicating whether the internal connection string must be rebuilt. (Se hereda de SqlOlapConnectionInfoBase.) | |
SecurePassword | Gets or sets the secure password used to establish a connection. (Se hereda de SqlOlapConnectionInfoBase.) | |
ServerCaseSensitivity | Gets or sets the server case sensitivity for the connection. (Se hereda de ConnectionInfoBase.) | |
ServerName | Gets or sets the name of the instance of SQL Server. (Se hereda de SqlOlapConnectionInfoBase.) | |
ServerNameInternal | Gets or sets the internal name of the instance of SQL Server. (Se hereda de SqlOlapConnectionInfoBase.) | |
ServerType | Gets or sets the server connection type. (Se hereda de ConnectionInfoBase.) | |
ServerVersion | Gets or sets the version information about the instance of SQL Server. (Se hereda de ConnectionInfoBase.) | |
UseIntegratedSecurity | Gets or sets the Boolean property value that specifies whether the connection uses integrated security. (Se hereda de SqlOlapConnectionInfoBase.) | |
UserName | Gets or sets the user that is connecting to the instance of SQL Server. (Se hereda de SqlOlapConnectionInfoBase.) | |
WorkstationId | Gets or sets the value that uniquely identifies the client workstation. |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
ConnectionParmsChanged | Changes the connection parameters. (Se hereda de SqlOlapConnectionInfoBase.) | |
Copy | Returns a copy of the SqlConnectionInfo object. | |
CreateConnectionObject | Creates a system connection object. (Invalida SqlOlapConnectionInfoBase.CreateConnectionObject().) | |
Equals | (Se hereda de Object.) | |
Finalize | (Se hereda de Object.) | |
GetHashCode | (Se hereda de Object.) | |
GetType | (Se hereda de Object.) | |
MemberwiseClone | (Se hereda de Object.) | |
ToString | Returns the SqlConnectionInfo object in string format. (Invalida SqlOlapConnectionInfoBase.ToString().) |
Arriba
Campos
Nombre | Descripción | |
---|---|---|
DefaultNetworkProtocol | The NetworkProtocol object that specifies the default network protocol for the connection. |
Arriba
Comentarios
The SqlConnectionInfo object can be passed as a parameter when constructing the ServerConnection object to provide connection information.
Seguridad para subprocesos
Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.