SseItemParser<T> 代理人

定義

サーバー送信イベントのバイト ペイロードを解析するためのメソッドをカプセル化します。

generic <typename T>
public delegate T SseItemParser(System::String ^ eventType, ReadOnlySpan<System::Byte> data);
public delegate T SseItemParser<out T>(string eventType, ReadOnlySpan<byte> data);
type SseItemParser<'T> = delegate of string * ReadOnlySpan<byte> -> 'T
Public Delegate Function SseItemParser(Of Out T)(eventType As String, data As ReadOnlySpan(Of Byte)) As T 

型パラメーター

T

パーサーの戻り値の型を指定します。

この型パラメーターは共変です。 つまり、指定した型、または強い派生型のいずれかを使用することができます。 共変性および反変性の詳細については、「ジェネリックの共変性と反変性」をご覧ください。

パラメーター

eventType
String

イベントの種類。

data
ReadOnlySpan<Byte>

イベントのペイロード バイト。

戻り値

T

解析された T

拡張メソッド

GetMethodInfo(Delegate)

指定したデリゲートによって表されるメソッドを表すオブジェクトを取得します。

適用対象