Properties of an event published to an Event Grid topic using the EventGrid Schema.
[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Messaging.EventGrid.EventGridEventConverter))]
public class EventGridEvent
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Messaging.EventGrid.EventGridEventConverter))>]
type EventGridEvent = class
Public Class EventGridEvent
Gets or sets the event payload as BinaryData. Using BinaryData, one can deserialize the payload into rich data, or access the raw JSON data using ToString().
DataVersionGets or sets the schema version of the data object.
EventTimeGets or sets the time (in UTC) the event was generated.
EventTypeGets or sets the type of the event that occurred.
IdGets or sets a unique identifier for the event.
SubjectGets or sets a resource path relative to the topic path.
TopicGets or sets the resource path of the event source. This must be set when publishing the event to a domain, and must not be set when publishing the event to a topic.
Methods Parse(BinaryData)Given a single JSON-encoded event, parses the event envelope and returns an EventGridEvent. If the specified event is not valid JSON, or the event is missing required properties, an exception is thrown.
ParseMany(BinaryData)Given JSON-encoded events, parses the event envelope and returns an array of EventGridEvents. If the content is not valid JSON, or events are missing required properties, an exception is thrown.
TryGetSystemEventData(Object)Gets whether or not the event is a System defined event and returns the deserialized system event via out parameter.
Extension MethodsCollaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4