MessageWebSocketControl.ServerCredential Property


The credential to use to authenticate to the WebSocket server through HTTP header authentication using a MessageWebSocket object.

 property PasswordCredential ^ ServerCredential { PasswordCredential ^ get(); void set(PasswordCredential ^ value); };
PasswordCredential ServerCredential();

void ServerCredential(PasswordCredential value);
public PasswordCredential ServerCredential { get; set; }
var passwordCredential = messageWebSocketControl.serverCredential;
messageWebSocketControl.serverCredential = passwordCredential;
Public Property ServerCredential As PasswordCredential

Property Value



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

Applies to

See also