Udostępnij za pośrednictwem


MessageWebSocketInformation Class

Definition

Provides socket information on a MessageWebSocket.

public ref class MessageWebSocketInformation sealed : IWebSocketInformation
public ref class MessageWebSocketInformation sealed : IWebSocketInformation2
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MessageWebSocketInformation final : IWebSocketInformation
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MessageWebSocketInformation final : IWebSocketInformation2
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MessageWebSocketInformation : IWebSocketInformation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MessageWebSocketInformation : IWebSocketInformation2
Public NotInheritable Class MessageWebSocketInformation
Implements IWebSocketInformation
Public NotInheritable Class MessageWebSocketInformation
Implements IWebSocketInformation2
Inheritance
Object Platform::Object IInspectable MessageWebSocketInformation
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

MessageWebSocketInformation can be called any time after the MessageWebSocket has been created.

A MessageWebSocketInformation object is automatically created with the parent MessageWebSocket object. The MessageWebSocket.Information property provides access to the associated MessageWebSocketInformation object.

Version history

Windows version SDK version Value added
1607 14393 ServerCertificate
1607 14393 ServerCertificateErrors
1607 14393 ServerCertificateErrorSeverity
1607 14393 ServerIntermediateCertificates

Properties

BandwidthStatistics

Gets bandwidth information for network data transfer on a MessageWebSocket object.

Note that the returned statistics are based on extended TCP statistics, which are enabled by default on Client versions of Windows, but disabled by default for performance reasons on Server versions of Windows. If extended TCP statistics are not available, all returned numerical statistics are set to 0, and boolean statistics are set to false.

LocalAddress

Gets the IP address associated with a MessageWebSocket object.

Protocol

Gets the WebSocket sub-protocol negotiated with the server during WebSocket handshake on a MessageWebSocket object.

ServerCertificate

Gets the certificate provided by the server when a secure WebSocket connection has been established.

ServerCertificateErrors

Gets a list of the errors that occurred while establishing a secure WebSocket connection.

ServerCertificateErrorSeverity

Gets the category of an error that occurred making an SSL connection with a WebSocket server.

ServerIntermediateCertificates

Gets the intermediate certificates sent by the server during SSL negotiation when making an SSL connection with a WebSockets server.

Applies to

See also