Class ItemTypeRestrictionRule
- Namespace
- Dynamicweb.Content.Items.Activation
- Assembly
- Dynamicweb.dll
Represents a item type restriction rule.
[AddInTarget("Placeholders")]
public class ItemTypeRestrictionRule : CreationRuleBase
- Inheritance
-
ItemTypeRestrictionRule
- Inherited Members
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
CanCreateInner(CreationRuleContext, Page)
protected override bool CanCreateInner(CreationRuleContext context, Page parent)
Parameters
context
CreationRuleContextparent
Page
Returns
GetAllowedItemTypes(CreationRuleContext)
public static IEnumerable<string> GetAllowedItemTypes(CreationRuleContext context)
Parameters
context
CreationRuleContext
Returns
GetPlaceholder(CreationRuleContext, Layout)
protected static DynamicElement GetPlaceholder(CreationRuleContext context, Layout parentLayout)
Parameters
context
CreationRuleContextparentLayout
Layout
Returns
GetSystemNames(CreationRuleContext, Layout)
protected static IEnumerable<string> GetSystemNames(CreationRuleContext context, Layout parentLayout)
Parameters
context
CreationRuleContextparentLayout
Layout
Returns
GetValues()
public override IEnumerable<KeyValuePair<string, string>> GetValues()