StreamWebSocketInformation Class
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.
Provides socket information on a StreamWebSocket object.
public ref class StreamWebSocketInformation sealed : IWebSocketInformation
public ref class StreamWebSocketInformation sealed : IWebSocketInformation2
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class StreamWebSocketInformation final : IWebSocketInformation
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class StreamWebSocketInformation final : IWebSocketInformation2
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class StreamWebSocketInformation : IWebSocketInformation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class StreamWebSocketInformation : IWebSocketInformation2
Public NotInheritable Class StreamWebSocketInformation
Implements IWebSocketInformation
Public NotInheritable Class StreamWebSocketInformation
Implements IWebSocketInformation2
- Inheritance
- Attributes
- Implements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
App capabilities |
internetClient
privateNetworkClientServer
|
StreamWebSocketInformation can be called any time after the StreamWebSocket has been created.
A StreamWebSocketInformation object is automatically created with the parent StreamWebSocket object. The StreamWebSocket.Information property provides access to the associated StreamWebSocketInformation object.
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | ServerCertificate |
1607 | 14393 | ServerCertificateErrors |
1607 | 14393 | ServerCertificateErrorSeverity |
1607 | 14393 | ServerIntermediateCertificates |
Bandwidth |
Gets bandwidth information for network data transfer on a StreamWebSocket 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. |
Local |
Gets the IP address associated with a StreamWebSocket object. |
Protocol |
Gets the WebSocket sub-protocol negotiated with the server during WebSocket handshake on a StreamWebSocketobject. |
Server |
Gets the certificate provided by the server when a secure WebSocket connection has been established. |
Server |
Gets a list of the errors that occurred while establishing a secure StreamWebSocket connection. |
Server |
Gets the category of an error that occurred making an SSL connection with a StreamWebSocket server. |
Server |
Gets the intermediate certificates sent by the server during SSL negotiation when making an SSL connection with a StreamWebSocket server. |