Class ItemType
- Namespace
- Dynamicweb.Content.Items.Metadata
- Assembly
- Dynamicweb.dll
Represents an item metadata.
public class ItemType : IComparable<ItemType>
- Inheritance
-
ItemType
- Implements
- Inherited Members
Constructors
ItemType()
Initializes a new instance of an object.
public ItemType()
ItemType(ItemType)
Initializes a new instance of an object.
public ItemType(ItemType copyFrom)
Parameters
copyFrom
ItemType- Object to copy state from.
Exceptions
- ArgumentNullException
copyFrom
is null.
ItemType(string)
Initializes a new instance of an object.
public ItemType(string systemName)
Parameters
systemName
string- System name of an item type.
ItemType(string, string)
Initializes a new instance of an object.
public ItemType(string systemName, string name)
Parameters
Properties
Base
Gets or sets the system name of item type inherits from.
public string Base { get; set; }
Property Value
Category
Gets or sets item type category.
public ItemTypeCategory Category { get; set; }
Property Value
- ItemTypeCategory
- Item type category.
Description
Gets or sets the description of the item.
public string Description { get; set; }
Property Value
FieldForTitle
Gets or sets the system name of field to use as title.
public string FieldForTitle { get; set; }
Property Value
Fields
Gets or sets the collection of item field metadata.
public FieldMetadataCollection Fields { get; set; }
Property Value
Icon
Gets or sets the icon.
public KnownIcon Icon { get; set; }
Property Value
IconColor
Gets or sets the icon.
public KnownColor IconColor { get; set; }
Property Value
Image
Gets or sets the image path
public string Image { get; set; }
Property Value
IncludeInUrlIndex
Gets or sets the value indicating whether generate user friendly urls for this item.
public bool IncludeInUrlIndex { get; set; }
Property Value
IsEmpty
Gets value indicating whether this item is empty and doesn't contain any fields.
public bool IsEmpty { get; }
Property Value
LargeIcon
Gets or sets the large icon.
[Obsolete("Use Icon property instead.")]
public string LargeIcon { get; set; }
Property Value
Layout
Gets or sets the item layout.
public LayoutMetadata Layout { get; set; }
Property Value
Name
Gets or sets the user-friendly name of the item.
public string Name { get; set; }
Property Value
PageDefaultView
Gets or sets the value indicating whether use Item or Paragraph view for newly created page-item.
public string PageDefaultView { get; set; }
Property Value
Rules
Gets or sets the collection of creation rules.
public CreationRuleMetadataCollection Rules { get; set; }
Property Value
SourceType
Gets or sets the activation source type.
public ActivationSourceType SourceType { get; set; }
Property Value
SystemName
Gets or sets the system name of the item.
public string SystemName { get; set; }
Property Value
Title
Gets or sets the title.
public string Title { get; set; }
Property Value
UseCache
Gets or sets the value indicating whether item should be cached.
[Obsolete("Always uses cache")]
public bool UseCache { get; set; }
Property Value
Methods
CompareTo(ItemType)
Compares the current object with the given one and returns the comparison result.
public int CompareTo(ItemType other)
Parameters
other
ItemType- Object to compare with.
Returns
- int
- Comparison result.
CopyTo(ItemType)
Copies the state of the current object into the given one.
public void CopyTo(ItemType target)
Parameters
target
ItemType- Object to copy state into.
Exceptions
- ArgumentNullException
target
is null.
FindRuleMetadata(Type)
Gets the rule metadata that matches the type provided, or an empty metadata if no match is found.
public CreationRuleMetadata FindRuleMetadata(Type type)
Parameters
type
Type- Type of CreationRuleMetadata to search for
Returns
GetAllFields()
public FieldMetadataCollection GetAllFields()
Returns
ParseFrom(Type)
Returns the item metadata that is parsed from the metadata of the given type.
public static ItemType ParseFrom(Type type)
Parameters
type
Type- Type to examine.
Returns
- ItemType
- Item metadata.