Class SectionRestrictionRule
- Namespace
- Dynamicweb.Content.Items.Activation
- Assembly
- Dynamicweb.dll
Represents an section restriction rule.
[Name("Allow in tree sections")]
[SortIndex(2)]
[AddInTarget("ItemTypes")]
public sealed class SectionRestrictionRule : CreationRule
- Inheritance
-
SectionRestrictionRule
- Inherited Members
Constructors
SectionRestrictionRule()
Initializes a new instance of an object.
public SectionRestrictionRule()
Properties
AllSections
public static string AllSections { 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
contextCreationRuleContextCreation 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
contextCreationRuleEditorContext
Returns
- Editor
An instance of an object that is responsible for editing rule value.
GetValues()
public override IEnumerable<KeyValuePair<string, string>> GetValues()