HandshakeProtocol.TryParseRequestMessage 方法

定义

HandshakeRequestMessage从指定的序列化表示形式创建新的 。

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

参数

buffer
ReadOnlySequence<Byte>

消息的序列化表示形式。

requestMessage
HandshakeRequestMessage

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

返回

如果 已成功分析 ,则为 true 一个值;否则为 falseHandshakeRequestMessage

适用于