DevicePortalConnection.GetServerStreamWebSocketForRequest 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetServerStreamWebSocketForRequest(HttpRequestMessage) |
傳回伺服器端串流 WebSocket 以搭配裝置入口網站使用。 |
GetServerStreamWebSocketForRequest(HttpRequestMessage, String, UInt32, Boolean) |
傳回伺服器端串流 WebSocket 以搭配裝置入口網站使用。 |
GetServerStreamWebSocketForRequest(HttpRequestMessage)
傳回伺服器端串流 WebSocket 以搭配裝置入口網站使用。
public:
virtual ServerStreamWebSocket ^ GetServerStreamWebSocketForRequest(HttpRequestMessage ^ request) = GetServerStreamWebSocketForRequest;
/// [Windows.Foundation.Metadata.Overload("GetServerStreamWebSocketForRequest")]
ServerStreamWebSocket GetServerStreamWebSocketForRequest(HttpRequestMessage const& request);
[Windows.Foundation.Metadata.Overload("GetServerStreamWebSocketForRequest")]
public ServerStreamWebSocket GetServerStreamWebSocketForRequest(HttpRequestMessage request);
function getServerStreamWebSocketForRequest(request)
Public Function GetServerStreamWebSocketForRequest (request As HttpRequestMessage) As ServerStreamWebSocket
參數
- request
- HttpRequestMessage
HTTP 要求訊息 (找到為 DevicePortalConnectionRequestReceivedEventArgs 類別) 的屬性。
傳回
可搭配 Device Portal 使用的伺服器端資料流程 WebSocket 物件。
- 屬性
Windows 需求
裝置系列 |
Windows 10, version 1803 (已於 10.0.17134.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)
|
適用於
GetServerStreamWebSocketForRequest(HttpRequestMessage, String, UInt32, Boolean)
傳回伺服器端串流 WebSocket 以搭配裝置入口網站使用。
public:
virtual ServerStreamWebSocket ^ GetServerStreamWebSocketForRequest(HttpRequestMessage ^ request, Platform::String ^ protocol, unsigned int outboundBufferSizeInBytes, bool noDelay) = GetServerStreamWebSocketForRequest;
/// [Windows.Foundation.Metadata.Overload("GetServerStreamWebSocketForRequest2")]
ServerStreamWebSocket GetServerStreamWebSocketForRequest(HttpRequestMessage const& request, winrt::hstring const& protocol, uint32_t const& outboundBufferSizeInBytes, bool const& noDelay);
[Windows.Foundation.Metadata.Overload("GetServerStreamWebSocketForRequest2")]
public ServerStreamWebSocket GetServerStreamWebSocketForRequest(HttpRequestMessage request, string protocol, uint outboundBufferSizeInBytes, bool noDelay);
function getServerStreamWebSocketForRequest(request, protocol, outboundBufferSizeInBytes, noDelay)
Public Function GetServerStreamWebSocketForRequest (request As HttpRequestMessage, protocol As String, outboundBufferSizeInBytes As UInteger, noDelay As Boolean) As ServerStreamWebSocket
參數
- request
- HttpRequestMessage
HTTP 要求訊息 (找到為 DevicePortalConnectionRequestReceivedEventArgs 類別) 的屬性。
- protocol
-
String
Platform::String
winrt::hstring
此 WebSocket 將使用的子通訊協定。
- outboundBufferSizeInBytes
-
UInt32
unsigned int
uint32_t
要用於在 ServerMessageWebSocket 物件上傳送資料的傳送緩衝區大小,以位元組為單位。
- noDelay
-
Boolean
bool
布林值,指出 Nagle 的演算法是否在此 WebSocket 物件上使用。 如需 Nagle 演算法的詳細資訊,請參閱 StreamSocketControl 類別。
傳回
可搭配 Device Portal 使用的伺服器端資料流程 WebSocket 物件。
- 屬性
Windows 需求
裝置系列 |
Windows 10, version 1803 (已於 10.0.17134.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)
|