Class ItemTypeCategory
- Namespace
- Dynamicweb.Content.Items.Metadata
- Assembly
- Dynamicweb.dll
Represents an category of item metadata.
public class ItemTypeCategory : IComparable<ItemTypeCategory>, IEquatable<ItemTypeCategory>
- Inheritance
-
ItemTypeCategory
- Implements
- Inherited Members
Constructors
ItemTypeCategory()
Initializes a new instance of an object.
public ItemTypeCategory()
ItemTypeCategory(ItemTypeCategory)
Initializes a new instance of an object.
public ItemTypeCategory(ItemTypeCategory copyFrom)
Parameters
copyFrom
ItemTypeCategory- Object to copy state from.
Exceptions
- ArgumentNullException
copyFrom
is null.
ItemTypeCategory(string)
Initializes a new instance of an object.
public ItemTypeCategory(string fullName)
Parameters
fullName
string- Category full name.
Fields
Separator
public const string Separator = "/"
Field Value
Properties
FullName
Gets or sets the path of the category.
public string FullName { get; set; }
Property Value
Location
Gets the location of the category.
public string Location { get; }
Property Value
Name
Gets the user-friendly name of the category.
public string Name { get; }
Property Value
Segments
public string[] Segments { get; }
Property Value
- string[]
Methods
CompareTo(ItemTypeCategory)
Compares the current object with the given one and returns the comparison result.
public int CompareTo(ItemTypeCategory other)
Parameters
other
ItemTypeCategory- Object to compare with.
Returns
- int
- Comparison result.
CopyTo(ItemTypeCategory)
Copies the state of the current object into the given one.
public void CopyTo(ItemTypeCategory target)
Parameters
target
ItemTypeCategory- Object to copy state into.
Exceptions
- ArgumentNullException
target
is null.
Equals(ItemTypeCategory)
public bool Equals(ItemTypeCategory other)
Parameters
other
ItemTypeCategory
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetParentRelativePath()
Gets the path to the parent
public string GetParentRelativePath()
Returns
- string
- path
IsValid(string)
Returns whether category full name is valid.
public static bool IsValid(string name)
Parameters
name
string- Category full name.
Returns
- bool
- Boolean.