SmtpSection.DeliveryMethod 屬性

定義

取得或設定 Simple Mail Transport Protocol (SMTP) 傳遞方法。 預設的傳遞方法為 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

屬性值

表示 SMTP 傳遞方法的字串。

屬性

備註

此屬性 Network 的有效值為 、 PickupDirectoryFromIisSpecifiedPickupDirectory 。 這些值具有可設定的子專案,並在組態檔中 System.Net 具有對應的區段。 所有區段都是以 camel 大小寫,讓使用者能夠與傳遞方法與其對應的區段名稱相符。

適用於

另請參閱