語言

StreamWebSocketControl.ProxyCredential 屬性

定義

用來透過 HTTP 標頭認證,使用 StreamWebSocket 物件向代理伺服器進行認證的憑證。

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

void ProxyCredential(PasswordCredential value);
public PasswordCredential ProxyCredential { get; set; }
var passwordCredential = streamWebSocketControl.proxyCredential;
streamWebSocketControl.proxyCredential = passwordCredential;
Public Property ProxyCredential As PasswordCredential

屬性值

用於透過 HTTP 標頭認證驗證代理伺服器的憑證。

實作

備註

ProxyCredential 屬性必須先設定,才能在 StreamWebSocket 物件上呼叫 ConnectAsync 方法。 在呼叫 ConnectAsync 方法後嘗試設定 ProxyCredential 屬性會發生錯誤。

適用於

另請參閱