ConnectionSecurityContext.WindowsAuthentication 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定Boolean一個屬性,指定連線是使用 Windows 認證還是 SQL Server 認證建立。
public:
property bool WindowsAuthentication { bool get(); void set(bool value); };
public bool WindowsAuthentication { get; set; }
member this.WindowsAuthentication : bool with get, set
Public Property WindowsAuthentication As Boolean
屬性值
一個Boolean指定連線是使用 Windows 認證還是 SQL Server 認證建立的值。
如果值為true(預設值),則連線是透過 Windows 驗證建立的。
若值為 false,則使用 SQL Server 認證建立連線。
實作
備註
盡可能使用 Windows 驗證。
此命名空間、類別或成員僅支援於 .NET Framework 2.0。