SmtpClient.DeliveryMethod 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定处理发出的电子邮件的方法。
public:
 property System::Net::Mail::SmtpDeliveryMethod DeliveryMethod { System::Net::Mail::SmtpDeliveryMethod get(); void set(System::Net::Mail::SmtpDeliveryMethod value); };public System.Net.Mail.SmtpDeliveryMethod DeliveryMethod { get; set; }member this.DeliveryMethod : System.Net.Mail.SmtpDeliveryMethod with get, setPublic Property DeliveryMethod As SmtpDeliveryMethod属性值
SmtpDeliveryMethod,它指示如何传递电子邮件。
注解
传递方法包括:
- 一个 SMTP 服务器。 
- 将电子邮件移动到 IIS 的取件目录,然后 IIS 将传递邮件。 
- 将电子邮件移动到 指定的 PickupDirectoryLocation 目录,以便以后由另一个应用程序传递。 
还可以在计算机或应用程序配置文件中设置此属性的默认值。 对 PickupDirectoryLocation 属性所做的任何更改将覆盖配置文件设置。