共用方式為


StreamWebSocketControl.ProxyCredential 屬性

定義

用來透過 使用 StreamWebSocket 物件的 HTTP 標頭驗證向 Proxy 伺服器進行驗證的認證。

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 標頭驗證向 Proxy 伺服器進行驗證的認證。

實作

備註

StreamWebSocket物件上呼叫ConnectAsync方法之前,必須先設定 ProxyCredential 屬性。 呼叫 ConnectAsync 方法之後嘗試設定 ProxyCredential 屬性將會導致錯誤。

適用於

另請參閱