Class ChildRestrictionRule
- Namespace
- Dynamicweb.Content.Items.Activation
- Assembly
- Dynamicweb.dll
[Name("Allowed children")]
[SortIndex(4)]
[AddInTarget("ItemTypes")]
public class ChildRestrictionRule : CreationRule
- Inheritance
-
ChildRestrictionRule
- Inherited Members
Constructors
ChildRestrictionRule()
public ChildRestrictionRule()
Properties
IsBroadcast
Gets value indicating whether the calling context must be aware of this rule rather than a rule aware of the context.
public override bool IsBroadcast { get; }
Property Value
Methods
CanCreate(CreationRuleContext)
Returns value indicating whether item of can be created according to the given creation context.
public override 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 override Editor CreateEditor(CreationRuleEditorContext context)
Parameters
context
CreationRuleEditorContext
Returns
- Editor
- An instance of an object that is responsible for editing rule value.
GetAllowedStructureTypes()
public IEnumerable<ChildRestrictionType> GetAllowedStructureTypes()
Returns
GetValues()
public override IEnumerable<KeyValuePair<string, string>> GetValues()