Udostępnij przez


Właściwość UIConnectionInfo.AuthenticationType

Ten interfejs API obsługuje infrastrukturę programu i nie jest przeznaczony do użycia bezpośrednio w kodzie.

Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.Pobiera lub ustawia Int32 wartość, która określa, czy okno dialogowe połączenia należy używać uwierzytelniania programu SQL Server lub uwierzytelniania systemu Windows.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.RegSvrEnum
Zestaw:  Microsoft.SqlServer.RegSvrEnum (w Microsoft.SqlServer.RegSvrEnum.dll)

Składnia

'Deklaracja
Public Property AuthenticationType As Integer
    Get
    Set
'Użycie
Dim instance As UIConnectionInfo
Dim value As Integer

value = instance.AuthenticationType

instance.AuthenticationType = value
public int AuthenticationType { get; set; }
public:
property int AuthenticationType {
    int get ();
    void set (int value);
}
member AuthenticationType : int with get, set
function get AuthenticationType () : int
function set AuthenticationType (value : int)

Wartość właściwości

Typ: System.Int32
Int32 , Który określa wartość 1 okno dialogowe połączenie korzystania z uwierzytelniania programu SQL Server lub 0 Jeśli należy za pomocą uwierzytelniania systemu Windows.

Uwagi

Gdy jest to możliwe, należy używać uwierzytelniania systemu Windows.