ServerStreamWebSocketInformation 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供 ServerStreamWebSocket 物件的 socket 資訊。
public ref class ServerStreamWebSocketInformation 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 ServerStreamWebSocketInformation 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 ServerStreamWebSocketInformation
Public NotInheritable Class ServerStreamWebSocketInformation
- 繼承
- 屬性
Windows 需求
| 規格需求 | Description |
|---|---|
| 裝置系列 |
Windows 10, version 1803 (已於 10.0.17134.0 引進)
|
| API contract |
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)
|
| 應用程式功能 |
internetClientServer
privateNetworkClientServer
|
屬性
| 名稱 | Description |
|---|---|
| BandwidthStatistics |
透過 ServerStreamWebSocket 物件取得網路資料傳輸的頻寬資訊。 請注意,回傳的統計數據是基於擴充 TCP 統計,該統計在 Windows 用戶端版本預設啟用,但在 Windows 伺服器版本因效能考量預設關閉。 若無法提供擴充的 TCP 統計資料,則所有回傳的數值統計資料皆設為 0,布林統計則設為 false。 |
| LocalAddress |
取得與 ServerStreamWebSocket 物件相關的 IP 位址。 |
| Protocol |
在 ServerStreamWebSocket物件的 WebSocket 握手時,取得與伺服器協商的 WebSocket 子協定。 |