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
Item
Gets or sets the item to which this rule applies.
public ItemType Item { get; set; }
Property Value
Name
Name of rule
public virtual string Name { get; set; }
Property Value
RuleType
Gets or sets the rule type
public virtual CreationRuleType RuleType { get; set; }
Property Value
SourceType
Gets or sets the activation source type.
public ActivationSourceType SourceType { get; set; }
Property Value
Value
Gets or sets the currently selected rule value.
public object Value { get; set; }
Property Value
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
CreationRuleContextCreation 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
Parse(object)
Converts value to Collection.
protected virtual IEnumerable<string> Parse(object value)
Parameters
value
object