Freigeben über


UIConnectionInfo.AuthenticationType-Eigenschaft

Diese API unterstützt die SQL Server 2012-Infrastruktur und ist nicht zur direkten Verwendung im Code bestimmt.

Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. Gets or sets a Int32 value that specifies whether the connection dialog should use SQL Server Authentication or Windows Authentication.

Namespace:  Microsoft.SqlServer.Management.Smo.RegSvrEnum
Assembly:  Microsoft.SqlServer.RegSvrEnum (in Microsoft.SqlServer.RegSvrEnum.dll)

Syntax

'Declaration
Public Property AuthenticationType As Integer 
    Get 
    Set
'Usage
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)

Eigenschaftswert

Typ: System.Int32
An Int32 value that specifies 1 if the connection dialog should use SQL Server Authentication or 0 if it should use Windows Authentication.

Hinweise

Verwenden Sie nach Möglichkeit die Windows-Authentifizierung.

Siehe auch

Verweis

UIConnectionInfo Klasse

Microsoft.SqlServer.Management.Smo.RegSvrEnum-Namespace