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

此方法返回时,包含已分析的消息。

返回

如果 已成功分析 ,则为 true ;否则为 falseHandshakeResponseMessage

适用于