ConnectionSecurityContext.WindowsAuthentication Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the Boolean property that specifies whether the connection is made by using Windows Authentication or SQL Server Authentication.
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
Property Value
A Boolean value that specifies whether the connection is made by using Windows Authentication or SQL Server Authentication.
If the value is true
(default), the connection is made by using Windows Authentication.
If the value is false
, the connection is made by using SQL Server Authentication.
Implements
Remarks
When possible, use Windows Authentication.
This namespace, class, or member is supported only in the .NET Framework 2.0.