共用方式為


IWebSocketControl.ProxyCredential 屬性

定義

用來透過使用 IWebSocket 物件的 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 = iWebSocketControl.proxyCredential;
iWebSocketControl.proxyCredential = passwordCredential;
Public Property ProxyCredential As PasswordCredential

屬性值

用來透過 HTTP 標頭驗證向 Proxy 伺服器驗證的認證。

備註

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

適用於

另請參閱