ServerMessageWebSocketInformation 類別

定義

提供 ServerMessageWebSocket上的通訊端資訊。

public ref class ServerMessageWebSocketInformation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ServerMessageWebSocketInformation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ServerMessageWebSocketInformation
Public NotInheritable Class ServerMessageWebSocketInformation
繼承
Object Platform::Object IInspectable ServerMessageWebSocketInformation
屬性

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)
應用程式功能
internetClientServer privateNetworkClientServer

屬性

BandwidthStatistics

取得 ServerMessageWebSocket 物件上網路資料傳輸的頻寬資訊。

請注意,傳回的統計資料是以預設在 Windows 用戶端版本上啟用的擴充 TCP 統計資料為基礎,但基於 Windows 伺服器版本的效能考慮,預設為停用。 如果無法使用擴充 TCP 統計資料,則所有傳回的數值統計資料都會設定為 0,而布林統計資料會設定為 false。

LocalAddress

取得與 ServerMessageWebSocket 物件相關聯的 IP 位址。

Protocol

取得 在 ServerMessageWebSocket 物件上與伺服器交握期間與伺服器交涉的 WebSocket 子通訊協定。

適用於

另請參閱