共用方式為


IHubProtocol.TryParseMessage 方法

定義

使用指定的系結器,從指定的序列化標記法建立新的 HubMessage

public:
 bool TryParseMessage(System::Buffers::ReadOnlySequence<System::Byte> % input, Microsoft::AspNetCore::SignalR::IInvocationBinder ^ binder, [Runtime::InteropServices::Out] Microsoft::AspNetCore::SignalR::Protocol::HubMessage ^ % message);
public bool TryParseMessage (ref System.Buffers.ReadOnlySequence<byte> input, Microsoft.AspNetCore.SignalR.IInvocationBinder binder, out Microsoft.AspNetCore.SignalR.Protocol.HubMessage message);
public bool TryParseMessage (ref System.Buffers.ReadOnlySequence<byte> input, Microsoft.AspNetCore.SignalR.IInvocationBinder binder, out Microsoft.AspNetCore.SignalR.Protocol.HubMessage? message);
abstract member TryParseMessage : ReadOnlySequence * Microsoft.AspNetCore.SignalR.IInvocationBinder * HubMessage -> bool
Public Function TryParseMessage (ByRef input As ReadOnlySequence(Of Byte), binder As IInvocationBinder, ByRef message As HubMessage) As Boolean

參數

input
ReadOnlySequence<Byte>

訊息的序列化表示。

binder
IInvocationBinder

用來剖析訊息的系結器。

message
HubMessage

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

傳回

值, true 如果 HubMessage 已成功剖析 ,則為 ,否則為 false

適用於