Поделиться через


SqlConnectionInfoWithConnection Class

Definition

[System.Serializable]
public sealed class SqlConnectionInfoWithConnection : Microsoft.SqlServer.Management.Common.SqlConnectionInfo, IDisposable, Microsoft.SqlServer.Management.Common.IRestrictedAccess
[<System.Serializable>]
type SqlConnectionInfoWithConnection = class
    inherit SqlConnectionInfo
    interface IDisposable
    interface IRestrictedAccess
Public NotInheritable Class SqlConnectionInfoWithConnection
Inherits SqlConnectionInfo
Implements IDisposable, IRestrictedAccess
Inheritance
Attributes
Implements

Constructors

SqlConnectionInfoWithConnection()
SqlConnectionInfoWithConnection(SqlConnection)
SqlConnectionInfoWithConnection(SqlConnection)
SqlConnectionInfoWithConnection(String, String, String)
SqlConnectionInfoWithConnection(String)

Fields

NoTimeOut (Inherited from SqlOlapConnectionInfoBase)

Properties

AccessToken

The access token value to use for universal auth

(Inherited from SqlConnectionInfo)
AdditionalParameters (Inherited from SqlConnectionInfo)
ApplicationIntent

ApplicationIntent for the connection

(Inherited from SqlConnectionInfo)
ApplicationName (Inherited from SqlConnectionInfo)
Authentication

return SqlConnectionInfo.AuthenticationMethod

(Inherited from SqlConnectionInfo)
ConnectionProtocol (Inherited from SqlConnectionInfo)
ConnectionString (Inherited from SqlConnectionInfo)
ConnectionStringInternal (Inherited from SqlOlapConnectionInfoBase)
ConnectionTimeout (Inherited from SqlOlapConnectionInfoBase)
ConnectionTimeoutInternal (Inherited from SqlOlapConnectionInfoBase)
DatabaseName (Inherited from SqlOlapConnectionInfoBase)
DatabaseNameInternal (Inherited from SqlOlapConnectionInfoBase)
EncryptConnection

Whether to set Encrypt=true in the connection string

(Inherited from SqlConnectionInfo)
HostNameInCertificate

Sets host name provided in certificate to be used for certificate validation.

(Inherited from SqlConnectionInfo)
IntegratedSecurityInternal (Inherited from SqlOlapConnectionInfoBase)
MaxPoolSize (Inherited from SqlConnectionInfo)
MinPoolSize (Inherited from SqlConnectionInfo)
PacketSize (Inherited from SqlConnectionInfo)
Password (Inherited from SqlOlapConnectionInfoBase)
PoolConnectionLifeTime (Inherited from SqlConnectionInfo)
Pooled (Inherited from SqlConnectionInfo)
QueryTimeout (Inherited from SqlOlapConnectionInfoBase)
QueryTimeoutInternal (Inherited from SqlOlapConnectionInfoBase)
RebuildConnectionStringInternal (Inherited from SqlOlapConnectionInfoBase)
SecurePassword (Inherited from SqlOlapConnectionInfoBase)
ServerCaseSensitivity (Inherited from ConnectionInfoBase)
ServerCertificate

Sets Path to Server Certificate to be used for Certificate validation.

(Inherited from SqlConnectionInfo)
ServerConnection
ServerName (Inherited from SqlOlapConnectionInfoBase)
ServerNameInternal (Inherited from SqlOlapConnectionInfoBase)
ServerType (Inherited from ConnectionInfoBase)
ServerVersion (Inherited from ConnectionInfoBase)
SingleConnection
StrictEncryption

Whether to set Encrypt=Strict in the connection string. If Strict is not supported by the current SqlClient, when true this value will set Encrypt=true

(Inherited from SqlConnectionInfo)
TrustServerCertificate

return whether to trust server certificate

(Inherited from SqlConnectionInfo)
UseIntegratedSecurity (Inherited from SqlOlapConnectionInfoBase)
UserName (Inherited from SqlOlapConnectionInfoBase)
WorkstationId (Inherited from SqlConnectionInfo)

Methods

ConnectionParmsChanged() (Inherited from SqlOlapConnectionInfoBase)
Copy()

Deep copy

CreateConnectionObject()

Returns a new IDbConnection implementation. Callers should use this object and release the reference to it in a short amount of time, as the associated access token may have a limited lifetime.

(Inherited from SqlConnectionInfo)
Dispose()
ToString() (Inherited from SqlConnectionInfo)

Events

ConnectionClosed

Applies to