StreamWebSocketControl.ProxyCredential 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
用來透過 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 屬性會發生錯誤。