Condividi tramite


Classe SmtpNetworkSettings

Configura le impostazioni di rete SMTP (Simple Mail Transfer Protocol).

Sintassi

class SmtpNetworkSettings : EmbeddedObject  

Metodi

Questa classe non contiene metodi.

Proprietà

Nella tabella seguente sono elencate le proprietà esposte dalla SmtpNetworkSettings classe .

Nome Descrizione
DefaultCredentials Valore di lettura/scrittura boolean . true se le credenziali utente predefinite vengono usate per accedere a un server SMTP; in caso contrario, false. Il valore predefinito è false.
Host Valore di lettura/scrittura string che specifica il nome del server SMTP.
Password Valore di lettura/scrittura string che specifica la password utente con cui connettersi a un server SMTP. Nota: La DefaultCredentials proprietà ha la precedenza sulle UserName proprietà e Password . Le UserName proprietà e Password vengono usate solo se DefaultCredentials è impostata su false.
Port Valore di lettura/scrittura sint32 che specifica la porta usata dai client SMTP per connettersi a un server SMTP. Il valore predefinito è 25.
UserName Valore di lettura/scrittura string che specifica il nome utente con cui connettersi a un server SMTP.

Sottoclassi

Questa classe non contiene sottoclassi.

Commenti

Le istanze di questa classe sono contenute nella Network proprietà della classe SmtpMailSettingsSection .

Gerarchia di ereditarietà

EmbeddedObject

SmtpNetworkSettings

Requisiti

Tipo Descrizione
Client - IIS 7.0 in Windows Vista
- IIS 7.5 in Windows 7
- IIS 8.0 in Windows 8
- IIS 10.0 in Windows 10
Server - IIS 7.0 in Windows Server 2008
- IIS 7.5 in Windows Server 2008 R2
- IIS 8.0 in Windows Server 2012
- IIS 8.5 in Windows Server 2012 R2
- IIS 10.0 in Windows Server 2016
Prodotto - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
File MOF WebAdministration.mof

Vedere anche

Classe EmbeddedObject
Classe SmtpMailSettingsSection