共用方式為


ConnectionSecurityContext.WindowsAuthentication Property

Definition

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.

Applies to