Sana Assistant (online)
Table of Contents

ProductSearchVisualComponents reference

This article provides reference material about ProductSearchVisualComponents record.

ProductSearchVisualComponents

Properties

Components

The list of visual components.

TotalCount

The total count of visual components.

Example:

var visualComponents = new ProductSearchVisualComponents(
    Components:
    [
        new ProductSearchVisualComponent(
            Id: "banner-1",
            Name: "Seasonal banner",
            Position: 2,
            Images: new ProductSearchVisualComponentImages(
                Primary: "https://example.com/banner-primary.jpg",
                Horizontal: "https://example.com/banner-horizontal.jpg"),
            AltText: "Seasonal promotion",
            Url: "https://example.com/promotion")
    ],
    TotalCount: 1);

See also