Redigera

Dela via


SmtpSection.DeliveryMethod Property

Definition

Gets or sets the Simple Mail Transport Protocol (SMTP) delivery method. The default delivery method is Network.

public:
 property System::Net::Mail::SmtpDeliveryMethod DeliveryMethod { System::Net::Mail::SmtpDeliveryMethod get(); void set(System::Net::Mail::SmtpDeliveryMethod value); };
[System.Configuration.ConfigurationProperty("deliveryMethod", DefaultValue=System.Net.Mail.SmtpDeliveryMethod.Network)]
public System.Net.Mail.SmtpDeliveryMethod DeliveryMethod { get; set; }
[<System.Configuration.ConfigurationProperty("deliveryMethod", DefaultValue=System.Net.Mail.SmtpDeliveryMethod.Network)>]
member this.DeliveryMethod : System.Net.Mail.SmtpDeliveryMethod with get, set
Public Property DeliveryMethod As SmtpDeliveryMethod

Property Value

A string that represents the SMTP delivery method.

Attributes

Remarks

Valid values for this property are Network, PickupDirectoryFromIis, and SpecifiedPickupDirectory. These values have configurable sub-items and have a corresponding section in the System.Net configuration file. All the sections are camel-cased, to allow the users to match the delivery method with their corresponding section names.

Applies to

See also