Table of Contents

Class RegisterAutomationConditionAttribute<TCondition>

Namespace
CMS.Automation
Assembly
CMS.Automation.dll

Registers a custom automation condition step.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true, Inherited = false)]
public sealed class RegisterAutomationConditionAttribute<TCondition> : Attribute, IPreInitAttribute where TCondition : IAutomationCondition

Type Parameters

TCondition

Type of the custom automation condition to register.

Inheritance
object
Attribute
RegisterAutomationConditionAttribute<TCondition>
Implements
Extension Methods

Remarks

Consider specifying the identifier in the format 'CompanyName.ModuleName.ConditionName', e.g. 'Acme.Commerce.HasActiveSubscriptionCondition'.

Constructors

RegisterAutomationConditionAttribute(string, string)

Initializes a new instance of the RegisterAutomationConditionAttribute<TCondition> class.

public RegisterAutomationConditionAttribute(string identifier, string displayName)

Parameters

identifier string

Unique identifier of the automation condition.

displayName string

Display name of the automation condition step shown in the automation builder UI.

Properties

Description

Description of the registered automation condition step shown in the automation builder.

public string Description { get; set; }

Property Value

string

DisplayName

Display name of the registered automation condition step shown in the automation builder.

public string DisplayName { get; }

Property Value

string

IconName

Icon name of the registered automation condition step.

public string IconName { get; set; }

Property Value

string

Identifier

Unique identifier of the registered automation condition step.

public string Identifier { get; }

Property Value

string

MarkedType

Type of the registered automation condition step.

public Type MarkedType { get; }

Property Value

Type

Methods

PreInit()

Registers the automation condition definition during application pre-initialization.

public void PreInit()