Condividi tramite


Proprietà ConnectionSecurityContext.WindowsAuthentication

Gets or sets the Boolean property that specifies whether the connection is made by using Windows Authentication or SQL Server Authentication.

Spazio dei nomi  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

Sintassi

'Dichiarazione
Public Property WindowsAuthentication As Boolean 
    Get 
    Set
'Utilizzo
Dim instance As ConnectionSecurityContext 
Dim value As Boolean 

value = instance.WindowsAuthentication

instance.WindowsAuthentication = value
public bool WindowsAuthentication { get; set; }
public:
virtual property bool WindowsAuthentication {
    bool get () sealed;
    void set (bool value) sealed;
}
abstract WindowsAuthentication : bool with get, set 
override WindowsAuthentication : bool with get, set
final function get WindowsAuthentication () : boolean 
final function set WindowsAuthentication (value : boolean)

Valore proprietà

Tipo: System.Boolean
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.

Implementa

IConnectionSecurityContext.WindowsAuthentication

Osservazioni

Se possibile, utilizzare l'autenticazione di Windows.

This namespace, class, or member is supported only in the .NET Framework 2.0.

Vedere anche

Riferimento

ConnectionSecurityContext Classe

Spazio dei nomi Microsoft.SqlServer.Replication