Share via


StreamWebSocketControl.ProxyCredential Property

Definition

The credential to use to authenticate to the proxy server through HTTP header authentication using a StreamWebSocket object.

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

Property Value

The credential to use to authenticate to the proxy server through HTTP header authentication.

Implements

Remarks

The ProxyCredential property must be set before calling the ConnectAsync method on the StreamWebSocket object. An attempt to set the ProxyCredential property after calling the ConnectAsync method will result in an error.

Applies to

See also