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
notificationUrlstringA url, where the notification request will be sent
expirationDateDateTimeA date, when the subscription will expire. Expiration date should not be greater than 6 months period.
clientStatestringA 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
notificationUrlstringA url, where the notification request will be sent
validityInMonthsintHow many months the subscription should stay valid. The maximum is 6 months.
clientStatestringA 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
notificationUrlstringA url, where the notification request will be sent
expirationDateDateTimeA date, when the subscription will expire. Expiration date should not be greater than 6 months period.
clientStatestringA 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
notificationUrlstringA url, where the notification request will be sent
validityInMonthsintHow many months the subscription should stay valid. The maximum is 6 months.
clientStatestringA 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
batchBatchBatch to use
notificationUrlstringA url, where the notification request will be sent
expirationDateDateTimeA date, when the subscription will expire. Expiration date should not be greater than 6 months period.
clientStatestringA 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
batchBatchBatch to use
notificationUrlstringA url, where the notification request will be sent
validityInMonthsintHow many months the subscription should stay valid. The maximum is 6 months.
clientStatestringA 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
notificationUrlstringA url, where the notification request will be sent
expirationDateDateTimeA date, when the subscription will expire. Expiration date should not be greater than 6 months period.
clientStatestringA 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
notificationUrlstringA url, where the notification request will be sent
validityInMonthsintHow many months the subscription should stay valid. The maximum is 6 months.
clientStatestringA 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
batchBatchBatch to use
notificationUrlstringA url, where the notification request will be sent
expirationDateDateTimeA date, when the subscription will expire. Expiration date should not be greater than 6 months period.
clientStatestringA 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
batchBatchBatch to use
notificationUrlstringA url, where the notification request will be sent
validityInMonthsintHow many months the subscription should stay valid. The maximum is 6 months.
clientStatestringA 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
notificationUrlstringA url, where the notification request will be sent
expirationDateDateTimeA date, when the subscription will expire. Expiration date should not be greater than 6 months period.
clientStatestringA 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
notificationUrlstringA url, where the notification request will be sent
validityInMonthsintHow many months the subscription should stay valid. The maximum is 6 months.
clientStatestringA 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
Returns
- IListSubscription
An IListSubscription instance
GetByIdAsync(Guid)
Gets webhook subscription
Task<IListSubscription> GetByIdAsync(Guid subscriptionId)
Parameters
Returns
- Task<IListSubscription>
An IListSubscription instance