World is now on Opti ID! Learn more

Class UniqueValueGenerator

Generates values for fields that needs to be unique.

Inheritance
System.Object
UniqueValueGenerator
Namespace: Mediachase.Commerce.Catalog.Data
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public class UniqueValueGenerator : Object

Constructors

UniqueValueGenerator(ICatalogSystem, IUrlSegmentGenerator)

Initializes a new instance of the UniqueValueGenerator class.

Declaration
public UniqueValueGenerator(ICatalogSystem catalogContext, IUrlSegmentGenerator urlSegmentGenerator)
Parameters
Type Name Description
ICatalogSystem catalogContext

The catalog context.

EPiServer.Web.IUrlSegmentGenerator urlSegmentGenerator

The URL segment generator.

Methods

GenerateCode(String)

Generates a unique code for the specified name.

Declaration
public virtual string GenerateCode(string name)
Parameters
Type Name Description
System.String name

The name.

Returns
Type Description
System.String