MessageWebSocketControl.ProxyCredential 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
該憑證用於透過 HTTP 標頭認證,使用 MessageWebSocket 物件向代理伺服器進行認證。
public:
property PasswordCredential ^ ProxyCredential { PasswordCredential ^ get(); void set(PasswordCredential ^ value); };
PasswordCredential ProxyCredential();
void ProxyCredential(PasswordCredential value);
public PasswordCredential ProxyCredential { get; set; }
var passwordCredential = messageWebSocketControl.proxyCredential;
messageWebSocketControl.proxyCredential = passwordCredential;
Public Property ProxyCredential As PasswordCredential
屬性值
用於透過 HTTP 標頭認證驗證代理伺服器的憑證。
實作
備註
ProxyCredential 屬性必須先設定,才能在 MessageWebSocket 物件上呼叫 ConnectAsync 方法。 在呼叫 ConnectAsync 方法後嘗試設定 ProxyCredential 屬性會發生錯誤。