共用方式為


HandshakeProtocol.TryParseResponseMessage 方法

定義

從指定的序列化標記法建立新的 HandshakeResponseMessage

public:
 static bool TryParseResponseMessage(System::Buffers::ReadOnlySequence<System::Byte> % buffer, [Runtime::InteropServices::Out] Microsoft::AspNetCore::SignalR::Protocol::HandshakeResponseMessage ^ % responseMessage);
public static bool TryParseResponseMessage (ref System.Buffers.ReadOnlySequence<byte> buffer, out Microsoft.AspNetCore.SignalR.Protocol.HandshakeResponseMessage responseMessage);
public static bool TryParseResponseMessage (ref System.Buffers.ReadOnlySequence<byte> buffer, out Microsoft.AspNetCore.SignalR.Protocol.HandshakeResponseMessage? responseMessage);
static member TryParseResponseMessage : ReadOnlySequence * HandshakeResponseMessage -> bool
Public Shared Function TryParseResponseMessage (ByRef buffer As ReadOnlySequence(Of Byte), ByRef responseMessage As HandshakeResponseMessage) As Boolean

參數

buffer
ReadOnlySequence<Byte>

訊息的序列化表示。

responseMessage
HandshakeResponseMessage

當這個方法傳回時,會包含剖析的訊息。

傳回

如果 成功剖析 的 HandshakeResponseMessagetrue ,則為 ,否則為 false

適用於