SMTPConn.UseWindowsAuthentication Propriété

Définition

Obtient ou définit un booléen indiquant s’il faut accéder au serveur SMTP via l’authentification Windows.

public:
 property bool UseWindowsAuthentication { bool get(); void set(bool value); };
public bool UseWindowsAuthentication { get; set; }
member this.UseWindowsAuthentication : bool with get, set
Public Property UseWindowsAuthentication As Boolean

Valeur de propriété

true indique que l’authentification Windows est utilisée pour authentifier l’accès au serveur. faux indique que l’authentification Windows n’est pas utilisée.

Remarques

Lorsque vous utilisez Microsoft Exchange comme serveur SMTP, vous devrez peut-être définir le UseWindowsAuthentication .true La plupart des serveurs Exchange sont configurés pour ne pas autoriser les connexions SMTP non authentifiées.

S’applique à