SmtpClient.PickupDirectoryLocation 属性

定义

获取或设置文件夹,应用程序在该文件夹中保存电子邮件供本地 SMTP 服务器处理。

public:
 property System::String ^ PickupDirectoryLocation { System::String ^ get(); void set(System::String ^ value); };
public string? PickupDirectoryLocation { get; set; }
public string PickupDirectoryLocation { get; set; }
member this.PickupDirectoryLocation : string with get, set
Public Property PickupDirectoryLocation As String

属性值

String,它指定邮件的拾取目录。

注解

如果存在) (如 IIS),则本地 SMTP 服务器 (自动发送取件目录中的邮件。

还可以在计算机或应用程序配置文件中设置此属性的默认值。 对 PickupDirectoryLocation 属性所做的任何更改将覆盖配置文件设置。

适用于

另请参阅