SseItem<T>(T, String) Constructor
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.
Initializes the server-sent event.
public SseItem(T data, string? eventType = default);
new System.Net.ServerSentEvents.SseItem<'T> : 'T * string -> System.Net.ServerSentEvents.SseItem<'T>
Public Sub New (data As T, Optional eventType As String = Nothing)
Parameters
- data
- T
The event's payload.
- eventType
- String
The event's type.
Exceptions
Thrown when eventType
contains a line break.