Partager via


Propriété AuthenticationType

Cette API prend en charge l'infrastructure et n'est pas destinée à être utilisée directement à partir de votre code.

Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. Gets or sets a Int32 value that specifies whether the connection dialog should use SQL Server Authentication or Windows Authentication.

Espace de noms :  Microsoft.SqlServer.Management.Smo.RegSvrEnum
Assembly :  Microsoft.SqlServer.RegSvrEnum (en Microsoft.SqlServer.RegSvrEnum.dll)

Syntaxe

'Déclaration
Public Property AuthenticationType As Integer
    Get
    Set
'Utilisation
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)

Valeur de propriété

Type : 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.

Notes

Lorsque c'est possible, utilisez l'authentification Windows.