Table of Contents
API reference

Method TryGetDataProperty

Namespace
DisCatSharp.Hosting.AspNetCore.Ingress.WebhookEvents
Assembly
DisCatSharp.Hosting.AspNetCore.dll

TryGetDataProperty(string, out JsonElement)

Attempts to resolve a property from the nested event data object.

public bool TryGetDataProperty(string name, out JsonElement value)

Parameters

name string

The property name to resolve.

value JsonElement

The resolved JSON value.

Returns

bool

true when the property exists on the nested event data object.