Click or drag to resize

EcommerceProductListBeforePagingArgs Class

Provides information about products before paging change
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceProductListBeforePagingArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class BeforePagingArgs : NotificationArgs

The EcommerceProductListBeforePagingArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceProductListBeforePagingArgs
Initializes a new instance of the EcommerceProductListBeforePagingArgs class.
Top
Properties
  NameDescription
Public propertyProducts
Gets the products.
Top
Remarks
The passed NotificationArgs is EcommerceProductListBeforePagingArgs
Examples
C#
using Dynamicweb;

namespace Dynamicweb.Ecommerce.Examples.Notifications
{
    [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforePaging)]
    public class EcomProductLisBeforePagingObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
        {
            if (args == null || !(args is Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforePagingArgs))
                return;

            Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforePagingArgs item = (Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList.BeforePagingArgs)args;

            //Add code here
        }
    }
}
See Also