Class WebhookEventAttribute
Attribute used to decorate webhook event classes with metadata such as name and event type.
Inheritance
object
Attribute
Namespace: Umbraco.Cms.Core.Webhooks
Assembly: Umbraco.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class WebhookEventAttribute : Attribute
Constructors
View SourceWebhookEventAttribute(string)
Initializes a new instance of the WebhookEventAttribute class with the specified name.
Declaration
public WebhookEventAttribute(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The friendly name of the webhook event. |
WebhookEventAttribute(string, string)
Initializes a new instance of the WebhookEventAttribute class with the specified name and event type.
Declaration
public WebhookEventAttribute(string name, string eventType)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The friendly name of the webhook event. |
| string | eventType | The type/category of the webhook event. |
Properties
View SourceEventType
Gets the type of event.
Declaration
public string? EventType { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Gets the friendly name of the event.
Declaration
public string? Name { get; }
Property Value
| Type | Description |
|---|---|
| string |