Table of Contents

Class CreationRule

Namespace
Dynamicweb.Content.Items.Activation
Assembly
Dynamicweb.dll

Represents an item instance creation rule.

public abstract class CreationRule
Inheritance
CreationRule
Derived
Inherited Members

Constructors

CreationRule()

Initializes a new instance of an object.

protected CreationRule()

Properties

IsBroadcast

Gets value indicating whether the calling context must be aware of this rule rather than a rule aware of the context.

public virtual bool IsBroadcast { get; }

Property Value

bool

Item

Gets or sets the item to which this rule applies.

public ItemType Item { get; set; }

Property Value

ItemType

Name

Name of rule

public virtual string Name { get; set; }

Property Value

string

RuleType

Gets or sets the rule type

public virtual CreationRuleType RuleType { get; set; }

Property Value

CreationRuleType

SourceType

Gets or sets the activation source type.

public ActivationSourceType SourceType { get; set; }

Property Value

ActivationSourceType

Value

Gets or sets the currently selected rule value.

public object Value { get; set; }

Property Value

object

Methods

CanCreate(CreationRuleContext)

Returns value indicating whether item of can be created according to the given creation context.

public abstract bool CanCreate(CreationRuleContext context)

Parameters

context CreationRuleContext

Creation context.

Returns

bool

Value indicating whether item of can be created according to the given creation context.

CreateEditor(CreationRuleEditorContext)

Returns an instance of an object that is responsible for editing rule value.

public virtual Editor CreateEditor(CreationRuleEditorContext context)

Parameters

context CreationRuleEditorContext

Returns

Editor

An instance of an object that is responsible for editing rule value.

GetValues()

public virtual IEnumerable<KeyValuePair<string, string>> GetValues()

Returns

IEnumerable<KeyValuePair<string, string>>

Parse(object)

Converts value to Collection.

protected virtual IEnumerable<string> Parse(object value)

Parameters

value object

Returns

IEnumerable<string>
To top