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, System::String ^ eventType);
public SseItem(T data, string eventType);
new System.Net.ServerSentEvents.SseItem<'T> : 'T * string -> System.Net.ServerSentEvents.SseItem<'T>
Public Sub New (data As T, eventType As String)
Parameters
- data
- T
The event's payload.
- eventType
- String
The event's type.
Exceptions
Thrown when eventType
contains a line break.
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา