共用方式為


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

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

傳回

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

適用於