Table of Contents

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

bool

Methods

CanCreateInner(CreationRuleContext, Page)

protected override bool CanCreateInner(CreationRuleContext context, Page parent)

Parameters

context CreationRuleContext
parent Page

Returns

bool

GetAllowedItemTypes(CreationRuleContext)

public static IEnumerable<string> GetAllowedItemTypes(CreationRuleContext context)

Parameters

context CreationRuleContext

Returns

IEnumerable<string>

GetPlaceholder(CreationRuleContext, Layout)

protected static DynamicElement GetPlaceholder(CreationRuleContext context, Layout parentLayout)

Parameters

context CreationRuleContext
parentLayout Layout

Returns

DynamicElement

GetSystemNames(CreationRuleContext, Layout)

protected static IEnumerable<string> GetSystemNames(CreationRuleContext context, Layout parentLayout)

Parameters

context CreationRuleContext
parentLayout Layout

Returns

IEnumerable<string>

GetValues()

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

Returns

IEnumerable<KeyValuePair<string, string>>
To top