SerializedHubMessage.GetSerializedMessage(IHubProtocol) 方法

定义

使用指定的 IHubProtocol获取 的HubMessage序列化表示形式。

public:
 ReadOnlyMemory<System::Byte> GetSerializedMessage(Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ protocol);
public ReadOnlyMemory<byte> GetSerializedMessage (Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol);
member this.GetSerializedMessage : Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol -> ReadOnlyMemory<byte>
Public Function GetSerializedMessage (protocol As IHubProtocol) As ReadOnlyMemory(Of Byte)

参数

protocol
IHubProtocol

用于创建序列化表示形式的协议。

返回

的序列化表示形式 HubMessage

适用于