IWebSocketControl.ServerCredential Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The credential to use to authenticate to the WebSocket server through HTTP header authentication using an IWebSocket object.
public:
property PasswordCredential ^ ServerCredential { PasswordCredential ^ get(); void set(PasswordCredential ^ value); };
PasswordCredential ServerCredential();
void ServerCredential(PasswordCredential value);
public PasswordCredential ServerCredential { get; set; }
var passwordCredential = iWebSocketControl.serverCredential;
iWebSocketControl.serverCredential = passwordCredential;
Public Property ServerCredential As PasswordCredential
Property Value
The credential to use to authenticate to the WebSocket server through HTTP header authentication.
Remarks
The ServerCredential property must be set before calling the ConnectAsync method on the IWebSocket object. An attempt to set the ServerCredential property after calling the ConnectAsync method will result in an error.