Compartir a través de


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
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)
ServerName (Inherited from SqlOlapConnectionInfoBase)
ServerNameInternal (Inherited from SqlOlapConnectionInfoBase)
ServerType (Inherited from ConnectionInfoBase)
ServerVersion (Inherited from ConnectionInfoBase)
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 The keyword "Authentication" is not supported until .Net4.6. If user uses a version of .Net less than 4.6, SSMS should avoid using "Authentication"

ToString()

Applies to