Interface IListSubscriptionCollection
A collection of list webhook subscriptions
Assembly: PnP.Core.dll
Syntax
public interface IListSubscriptionCollection : IDataModelCollection<IListSubscription>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<IListSubscription>, IDataModelCollectionDeleteByGuidId, ISupportModules<IListSubscriptionCollection>
Methods
Adds a new webhook subscription
Declaration
IListSubscription Add(string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
System.String
notificationUrl
A url, where the notification request will be sent
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
IListSubscription Add(string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
System.String
notificationUrl
A url, where the notification request will be sent
|
System.Int32
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddAsync(string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
System.String
notificationUrl
A url, where the notification request will be sent
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddAsync(string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
System.String
notificationUrl
A url, where the notification request will be sent
|
System.Int32
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
IListSubscription AddBatch(Batch batch, string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
Batch
batch
Batch to use
|
System.String
notificationUrl
A url, where the notification request will be sent
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
IListSubscription AddBatch(Batch batch, string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
Batch
batch
Batch to use
|
System.String
notificationUrl
A url, where the notification request will be sent
|
System.Int32
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
IListSubscription AddBatch(string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
System.String
notificationUrl
A url, where the notification request will be sent
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
IListSubscription AddBatch(string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
System.String
notificationUrl
A url, where the notification request will be sent
|
System.Int32
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddBatchAsync(Batch batch, string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
Batch
batch
Batch to use
|
System.String
notificationUrl
A url, where the notification request will be sent
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddBatchAsync(Batch batch, string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
Batch
batch
Batch to use
|
System.String
notificationUrl
A url, where the notification request will be sent
|
System.Int32
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddBatchAsync(string notificationUrl, DateTime expirationDate, string clientState = null)
Parameters
System.String
notificationUrl
A url, where the notification request will be sent
|
DateTime
expirationDate
A date, when the subscription will expire. Expiration date should not be greater than 6 months period.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Adds a new webhook subscription
Declaration
Task<IListSubscription> AddBatchAsync(string notificationUrl, int validityInMonths = 6, string clientState = null)
Parameters
System.String
notificationUrl
A url, where the notification request will be sent
|
System.Int32
validityInMonths
How many months the subscription should stay valid. The maximum is 6 months.
|
System.String
clientState
A string, which represents client information. You can use this for validating notifications, tagging different subscriptions, or other reasons.
|
Returns
Gets webhook subscription
Declaration
IListSubscription GetById(Guid subscriptionId)
Parameters
Guid
subscriptionId
Subscription's Id, a
|
Returns
Gets webhook subscription
Declaration
Task<IListSubscription> GetByIdAsync(Guid subscriptionId)
Parameters
Guid
subscriptionId
Subscription's Id, a
|
Returns
Extension Methods