BackgroundDownloader.ServerCredential 属性

定义

获取或设置用于向源服务器进行身份验证的凭据。

注意

对于通过 FTP 下载,必须在指定的 URI 中提供身份验证凭据。 例如, ftp://user:password@server/file.txt

public:
 property PasswordCredential ^ ServerCredential { PasswordCredential ^ get(); void set(PasswordCredential ^ value); };
PasswordCredential ServerCredential();

void ServerCredential(PasswordCredential credential);
public PasswordCredential ServerCredential { get; set; }
var passwordCredential = backgroundDownloader.serverCredential;
backgroundDownloader.serverCredential = passwordCredential;
Public Property ServerCredential As PasswordCredential

属性值

用于身份验证的凭据。

实现

适用于