Share via


HubProtocolExtensions.GetMessageBytes(IHubProtocol, HubMessage) メソッド

定義

指定した をシリアル化された表現に変換します HubMessage

public:
[System::Runtime::CompilerServices::Extension]
 static cli::array <System::Byte> ^ GetMessageBytes(Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ hubProtocol, Microsoft::AspNetCore::SignalR::Protocol::HubMessage ^ message);
public static byte[] GetMessageBytes (this Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol hubProtocol, Microsoft.AspNetCore.SignalR.Protocol.HubMessage message);
static member GetMessageBytes : Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol * Microsoft.AspNetCore.SignalR.Protocol.HubMessage -> byte[]
<Extension()>
Public Function GetMessageBytes (hubProtocol As IHubProtocol, message As HubMessage) As Byte()

パラメーター

hubProtocol
IHubProtocol

ハブ プロトコル。

message
HubMessage

バイトに変換するメッセージ。

戻り値

Byte[]

指定したメッセージのシリアル化された表現。

適用対象