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.Extensibility.Notifications;
using static Dynamicweb.Ecommerce.Notifications.Ecommerce.ProductList;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforePaging)]
public class EcomProductLisBeforePagingObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforePagingArgs item)        
            return;

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