Table of Contents
API reference

Method TryGetProperty

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

TryGetProperty(string, out JsonElement)

Attempts to resolve a top-level property from the envelope.

public bool TryGetProperty(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.