英語で読む

次の方法で共有


SseItem<T> Struct

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents a server-sent event.

C#
public readonly struct SseItem<T>

Type Parameters

T

Specifies the type of data payload in the event.

Inheritance
SseItem<T>

Constructors

SseItem<T>(T, String)

Initializes the server-sent event.

Properties

Data

Gets the event's payload.

EventId

Gets the event's id.

EventType

Gets the event's type.

ReconnectionInterval

Gets the event's retry interval.

Applies to

製品 バージョン
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)