SmtpNetworkElement::DefaultCredentials Property

 

Determines whether or not default user credentials are used to access an SMTP server. The default value is false.

Namespace:   System.Net.Configuration
Assembly:  System (in System.dll)

public:
[ConfigurationPropertyAttribute("defaultCredentials", DefaultValue = false)]
property bool DefaultCredentials {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true indicates that default user credentials will be used to access the SMTP server; otherwise, false.

.NET Framework
Available since 2.0
Return to top
Show: