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
ItemTypeCategoryObject to copy state from.
Exceptions
- ArgumentNullException
copyFrom
is null.
ItemTypeCategory(string)
Initializes a new instance of an object.
public ItemTypeCategory(string fullName)
Parameters
fullName
stringCategory 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
ItemTypeCategoryObject 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
ItemTypeCategoryObject to copy state into.
Exceptions
- ArgumentNullException
target
is null.
Equals(ItemTypeCategory)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ItemTypeCategory other)
Parameters
other
ItemTypeCategoryAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
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
stringCategory full name.
Returns
- bool
Boolean.