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


SqlConnectionInfo Class

Definition

[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public class SqlConnectionInfo : Microsoft.SqlServer.Management.Common.SqlOlapConnectionInfoBase
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type SqlConnectionInfo = class
    inherit SqlOlapConnectionInfoBase
Public Class SqlConnectionInfo
Inherits SqlOlapConnectionInfoBase
Inheritance
Derived
Attributes

Constructors

SqlConnectionInfo()
SqlConnectionInfo(ServerConnection, ConnectionType)

Initializes SqlConnectionInfo from ServerConnection object

SqlConnectionInfo(SqlConnectionInfo)
SqlConnectionInfo(String, String, String)
SqlConnectionInfo(String)

Fields

DefaultNetworkProtocol
NoTimeOut (Inherited from SqlOlapConnectionInfoBase)

Properties

AccessToken

The access token value to use for universal auth

AdditionalParameters
ApplicationIntent

ApplicationIntent for the connection

ApplicationName
Authentication

return SqlConnectionInfo.AuthenticationMethod

ConnectionProtocol
ConnectionString
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

HostNameInCertificate

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

IntegratedSecurityInternal (Inherited from SqlOlapConnectionInfoBase)
MaxPoolSize
MinPoolSize
PacketSize
Password (Inherited from SqlOlapConnectionInfoBase)
PoolConnectionLifeTime
Pooled
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.

ServerName (Inherited from SqlOlapConnectionInfoBase)
ServerNameInternal (Inherited from SqlOlapConnectionInfoBase)
ServerType (Inherited from ConnectionInfoBase)
ServerVersion (Inherited from ConnectionInfoBase)
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

TrustServerCertificate

return whether to trust server certificate

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

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.

GetAuthenticationMethod(SqlConnectionStringBuilder)

Retrieve the Authentication value from SqlConnectionStringBuilder and convert it to SqlConnectionInfo.AuthenticationMethod

GetAuthenticationMethod(SqlConnectionStringBuilder)

Retrieve the Authentication value from SqlConnectionStringBuilder and convert it to SqlConnectionInfo.AuthenticationMethod

IsApplicationIntentKeywordSupported()

Checks whether "ApplicationIntent" is supported in the runtime environment

IsAuthenticationKeywordSupported()

Checks whether "Authentication" is supported in the runtime environment

ToString()

Applies to