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
繼承
衍生
屬性

建構函式

名稱 Description
SqlConnectionInfo()
SqlConnectionInfo(ServerConnection, ConnectionType)

從 ServerConnection 物件初始化 SqlConnectionInfo

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

欄位

名稱 Description
DefaultNetworkProtocol
NoTimeOut (繼承來源 SqlOlapConnectionInfoBase)

屬性

名稱 Description
AccessToken

用於通用驗證的存取權杖值

AdditionalParameters
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

方法

名稱 Description
ConnectionParmsChanged() (繼承來源 SqlOlapConnectionInfoBase)
Copy()

深度複製

CreateConnectionObject()

回傳一個新的 IDbConnection 實作。 呼叫者應使用此物件並在短時間內釋放對其的引用,因為相關的存取權杖可能有有限的壽命。

GetAuthenticationMethod(SqlConnectionStringBuilder)

從 SqlConnectionStringBuilder 取得 Authentication 值,並將其轉換成 SqlConnectionInfo.AuthenticationMethod

GetAuthenticationMethod(SqlConnectionStringBuilder)

從 SqlConnectionStringBuilder 取得 Authentication 值,並將其轉換成 SqlConnectionInfo.AuthenticationMethod

IsApplicationIntentKeywordSupported()

檢查執行環境是否支援「ApplicationIntent」

IsAuthenticationKeywordSupported()

檢查執行環境是否支援「認證」

ToString()

適用於