共用方式為


AuthenticationPayloadOption.TryCertificateFirst 屬性

取得或設定連線是否應該先嘗試憑證,然後再嘗試 Windows 驗證。

命名空間:  Microsoft.Data.Schema.ScriptDom.Sql
組件:  Microsoft.Data.Schema.ScriptDom.Sql (在 Microsoft.Data.Schema.ScriptDom.Sql.dll 中)

語法

'宣告
Public Property TryCertificateFirst As Boolean
    Get
    Set
public bool TryCertificateFirst { get; set; }
public:
property bool TryCertificateFirst {
    bool get ();
    void set (bool value);
}
member TryCertificateFirst : bool with get, set
function get TryCertificateFirst () : boolean
function set TryCertificateFirst (value : boolean)

屬性值

型別:System.Boolean
如果連線應該先嘗試憑證,然後再嘗試 Windows 驗證,會傳回 true,否則傳回 false。

.NET Framework 安全性

請參閱

參考

AuthenticationPayloadOption 類別

Microsoft.Data.Schema.ScriptDom.Sql 命名空間