Search Results for

    Show / Hide Table of Contents

    Class Webhook

    Defines a Webhook

    Inheritance
    System.Object
    BaseModel
    Webhook
    SiteWebhook
    Inherited Members
    BaseModel.ParentTemplate
    Namespace: PnP.Framework.Provisioning.Model
    Assembly: PnP.Framework.dll
    Syntax
    public class Webhook : BaseModel, IProvisioningTemplateDescendant

    Properties

    ExpiresInDays

    Defines the expire days for the subscription of the Webhook, required attribute.

    Declaration
    public Int32 ExpiresInDays { get; set; }
    Property Value
    Int32

    Remarks

    The maximum value is 6 months (i.e. 180 days)

    ServerNotificationUrl

    Defines the Server Notification URL of the Webhook, required attribute.

    Declaration
    public String ServerNotificationUrl { get; set; }
    Property Value
    String

    Methods

    Equals(Webhook)

    Compares Webhook object based on ServerNotificationUrl and ExpiresInDays

    Declaration
    public bool Equals(Webhook other)
    Parameters
    Webhook other

    Webhook Class object

    Returns
    System.Boolean

    true if the Webhook object is equal to the current object; otherwise, false.

    Equals(Object)

    Compares object with Webhook class

    Declaration
    public override bool Equals(object obj)
    Parameters
    System.Object obj

    Object that represents Webhook

    Returns
    System.Boolean

    Checks whether object is Webhook class

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    System.Int32

    Returns HashCode

    Extension Methods

    ValidationExtensions.ValidateNotNullOrEmpty<T>(T, String)
    ObjectExtensions.Set<TObject, T>(TObject, Expression<Func<TObject, T>>, T, Boolean, Boolean)
    ObjectExtensions.GetPublicInstancePropertyValue(Object, String)
    ObjectExtensions.GetPublicInstanceProperty(Object, String)
    ObjectExtensions.SetPublicInstancePropertyValue(Object, String, Object)
    Extensions.ToByteArray(Object)
    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer