Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    WebhookEventAttribute(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.

    View Source

    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 Source

    EventType

    Gets the type of event.

    Declaration
    public string? EventType { get; }
    Property Value
    Type Description
    string
    View Source

    Name

    Gets the friendly name of the event.

    Declaration
    public string? Name { get; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX