Table of Contents

Class Ecommerce.ProductList.BeforePagingArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Provides information about products before paging change

public class Ecommerce.ProductList.BeforePagingArgs : NotificationArgs
Inheritance
Ecommerce.ProductList.BeforePagingArgs
Inherited Members

Examples

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
        }
    }
}

Remarks

The passed NotificationArgs is Ecommerce.ProductList.BeforePagingArgs

Constructors

BeforePagingArgs(ProductCollection)

Initializes a new instance of the Ecommerce.ProductList.BeforePagingArgs class.

public BeforePagingArgs(ProductCollection products)

Parameters

products ProductCollection

The products.

Properties

Products

Gets the products.

public ProductCollection Products { get; }

Property Value

ProductCollection

The products.

See Also

To top