共用方式為


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

屬性值

要用於驗證的認證。

實作

適用於