Table of Contents

Interface IListSubscriptionCollection

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

A collection of list webhook subscriptions

public interface IListSubscriptionCollection : IQueryable<IListSubscription>, IQueryable, IAsyncEnumerable<IListSubscription>, IDataModelCollection<IListSubscription>, IEnumerable<IListSubscription>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IListSubscription>, IDataModelCollectionDeleteByGuidId, ISupportModules<IListSubscriptionCollection>
Inherited Members
Extension Methods

Methods

Add(string, DateTime, string)

Adds a new webhook subscription

IListSubscription Add(string notificationUrl, DateTime expirationDate, string clientState = null)

Parameters

notificationUrl string

A url, where the notification request will be sent

expirationDate DateTime

A date, when the subscription will expire. Expiration date should not be greater than 6 months period.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

IListSubscription

An IListSubscription instance

Add(string, int, string)

Adds a new webhook subscription

IListSubscription Add(string notificationUrl, int validityInMonths = 6, string clientState = null)

Parameters

notificationUrl string

A url, where the notification request will be sent

validityInMonths int

How many months the subscription should stay valid. The maximum is 6 months.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

IListSubscription

An IListSubscription instance

AddAsync(string, DateTime, string)

Adds a new webhook subscription

Task<IListSubscription> AddAsync(string notificationUrl, DateTime expirationDate, string clientState = null)

Parameters

notificationUrl string

A url, where the notification request will be sent

expirationDate DateTime

A date, when the subscription will expire. Expiration date should not be greater than 6 months period.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

Task<IListSubscription>

An IListSubscription instance

AddAsync(string, int, string)

Adds a new webhook subscription

Task<IListSubscription> AddAsync(string notificationUrl, int validityInMonths = 6, string clientState = null)

Parameters

notificationUrl string

A url, where the notification request will be sent

validityInMonths int

How many months the subscription should stay valid. The maximum is 6 months.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

Task<IListSubscription>

An IListSubscription instance

AddBatch(Batch, string, DateTime, string)

Adds a new webhook subscription

IListSubscription AddBatch(Batch batch, string notificationUrl, DateTime expirationDate, string clientState = null)

Parameters

batch Batch

Batch to use

notificationUrl string

A url, where the notification request will be sent

expirationDate DateTime

A date, when the subscription will expire. Expiration date should not be greater than 6 months period.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

IListSubscription

An IListSubscription instance

AddBatch(Batch, string, int, string)

Adds a new webhook subscription

IListSubscription AddBatch(Batch batch, string notificationUrl, int validityInMonths = 6, string clientState = null)

Parameters

batch Batch

Batch to use

notificationUrl string

A url, where the notification request will be sent

validityInMonths int

How many months the subscription should stay valid. The maximum is 6 months.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

IListSubscription

An IListSubscription instance

AddBatch(string, DateTime, string)

Adds a new webhook subscription

IListSubscription AddBatch(string notificationUrl, DateTime expirationDate, string clientState = null)

Parameters

notificationUrl string

A url, where the notification request will be sent

expirationDate DateTime

A date, when the subscription will expire. Expiration date should not be greater than 6 months period.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

IListSubscription

An IListSubscription instance

AddBatch(string, int, string)

Adds a new webhook subscription

IListSubscription AddBatch(string notificationUrl, int validityInMonths = 6, string clientState = null)

Parameters

notificationUrl string

A url, where the notification request will be sent

validityInMonths int

How many months the subscription should stay valid. The maximum is 6 months.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

IListSubscription

An IListSubscription instance

AddBatchAsync(Batch, string, DateTime, string)

Adds a new webhook subscription

Task<IListSubscription> AddBatchAsync(Batch batch, string notificationUrl, DateTime expirationDate, string clientState = null)

Parameters

batch Batch

Batch to use

notificationUrl string

A url, where the notification request will be sent

expirationDate DateTime

A date, when the subscription will expire. Expiration date should not be greater than 6 months period.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

Task<IListSubscription>

An IListSubscription instance

AddBatchAsync(Batch, string, int, string)

Adds a new webhook subscription

Task<IListSubscription> AddBatchAsync(Batch batch, string notificationUrl, int validityInMonths = 6, string clientState = null)

Parameters

batch Batch

Batch to use

notificationUrl string

A url, where the notification request will be sent

validityInMonths int

How many months the subscription should stay valid. The maximum is 6 months.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

Task<IListSubscription>

An IListSubscription instance

AddBatchAsync(string, DateTime, string)

Adds a new webhook subscription

Task<IListSubscription> AddBatchAsync(string notificationUrl, DateTime expirationDate, string clientState = null)

Parameters

notificationUrl string

A url, where the notification request will be sent

expirationDate DateTime

A date, when the subscription will expire. Expiration date should not be greater than 6 months period.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

Task<IListSubscription>

An IListSubscription instance

AddBatchAsync(string, int, string)

Adds a new webhook subscription

Task<IListSubscription> AddBatchAsync(string notificationUrl, int validityInMonths = 6, string clientState = null)

Parameters

notificationUrl string

A url, where the notification request will be sent

validityInMonths int

How many months the subscription should stay valid. The maximum is 6 months.

clientState string

A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.

Returns

Task<IListSubscription>

An IListSubscription instance

GetById(Guid)

Gets webhook subscription

IListSubscription GetById(Guid subscriptionId)

Parameters

subscriptionId Guid

Subscription's Id, a Guid

Returns

IListSubscription

An IListSubscription instance

GetByIdAsync(Guid)

Gets webhook subscription

Task<IListSubscription> GetByIdAsync(Guid subscriptionId)

Parameters

subscriptionId Guid

Subscription's Id, a Guid

Returns

Task<IListSubscription>

An IListSubscription instance