Udostępnij za pośrednictwem


Właściwość SMOServerConn.UseWindowsAuthentication

Pobiera lub ustawia wartość logiczna wskazuje, że jeśli dla połączenia jest używane uwierzytelnianie systemu Windows.

Przestrzeń nazw:  Microsoft.SqlServer.Dts.ManagedConnections
Zestaw:  Microsoft.SqlServer.ManagedConnections (w Microsoft.SqlServer.ManagedConnections.dll)

Składnia

'Deklaracja
Public Property UseWindowsAuthentication As Boolean
    Get
    Set
'Użycie
Dim instance As SMOServerConn
Dim value As Boolean

value = instance.UseWindowsAuthentication

instance.UseWindowsAuthentication = value
public bool UseWindowsAuthentication { get; set; }
public:
property bool UseWindowsAuthentication {
    bool get ();
    void set (bool value);
}
member UseWindowsAuthentication : bool with get, set
function get UseWindowsAuthentication () : boolean
function set UseWindowsAuthentication (value : boolean)

Wartość właściwości

Typ: System.Boolean
TRUE , jeśli jest używane uwierzytelnianie systemu Windows w połączeniu; w przeciwnym razie false.

Uwagi

Ta wartość określa, czy właściwości użytkownika nazwa lub hasło są wymagane.Wartość true wskazuje, że jest używane uwierzytelnianie systemu Windows, dlatego nazwa użytkownika i hasło nie są wymagane w połączeniu.