SqlConnectionInfo 类

定义

[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
继承
派生
属性

构造函数

名称 说明
SqlConnectionInfo()
SqlConnectionInfo(ServerConnection, ConnectionType)

从 ServerConnection 对象初始化 SqlConnectionInfo

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

字段

名称 说明
DefaultNetworkProtocol
NoTimeOut (继承自 SqlOlapConnectionInfoBase)

属性

名称 说明
AccessToken

用于通用身份验证的访问令牌值

AdditionalParameters
ApplicationIntent

连接的 ApplicationIntent

ApplicationName
Authentication

return SqlConnectionInfo.AuthenticationMethod

ConnectionProtocol
ConnectionString
ConnectionStringInternal (继承自 SqlOlapConnectionInfoBase)
ConnectionTimeout (继承自 SqlOlapConnectionInfoBase)
ConnectionTimeoutInternal (继承自 SqlOlapConnectionInfoBase)
DatabaseName (继承自 SqlOlapConnectionInfoBase)
DatabaseNameInternal (继承自 SqlOlapConnectionInfoBase)
EncryptConnection

是否在连接字符串中设置 Encrypt=true

HostNameInCertificate

设置证书中提供的主机名,用于证书验证。

IntegratedSecurityInternal (继承自 SqlOlapConnectionInfoBase)
MaxPoolSize
MinPoolSize
PacketSize
Password (继承自 SqlOlapConnectionInfoBase)
PoolConnectionLifeTime
Pooled
QueryTimeout (继承自 SqlOlapConnectionInfoBase)
QueryTimeoutInternal (继承自 SqlOlapConnectionInfoBase)
RebuildConnectionStringInternal (继承自 SqlOlapConnectionInfoBase)
SecurePassword (继承自 SqlOlapConnectionInfoBase)
ServerCaseSensitivity (继承自 ConnectionInfoBase)
ServerCertificate

设置要用于证书验证的服务器证书的路径。

ServerName (继承自 SqlOlapConnectionInfoBase)
ServerNameInternal (继承自 SqlOlapConnectionInfoBase)
ServerType (继承自 ConnectionInfoBase)
ServerVersion (继承自 ConnectionInfoBase)
StrictEncryption

是否在连接字符串中设置 Encrypt=Strict。 如果当前 SqlClient 不支持 Strict,则当为 true 时,此值将设置为 Encrypt=true

TrustServerCertificate

返回是否信任服务器证书

UseIntegratedSecurity (继承自 SqlOlapConnectionInfoBase)
UserName (继承自 SqlOlapConnectionInfoBase)
WorkstationId

方法

名称 说明
ConnectionParmsChanged() (继承自 SqlOlapConnectionInfoBase)
Copy()

深层复制

CreateConnectionObject()

返回新的 IDbConnection 实现。 调用方应使用此对象并在短时间内释放对它的引用,因为关联的访问令牌的生存期可能有限。

GetAuthenticationMethod(SqlConnectionStringBuilder)

从 SqlConnectionStringBuilder 检索身份验证值,并将其转换为 SqlConnectionInfo.AuthenticationMethod

GetAuthenticationMethod(SqlConnectionStringBuilder)

从 SqlConnectionStringBuilder 检索身份验证值,并将其转换为 SqlConnectionInfo.AuthenticationMethod

IsApplicationIntentKeywordSupported()

检查运行时环境中是否支持“ApplicationIntent”

IsAuthenticationKeywordSupported()

检查运行时环境中是否支持“身份验证”

ToString()

适用于