Table of Contents

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

string

Properties

FullName

Gets or sets the path of the category.
public string FullName { get; set; }

Property Value

string

Location

Gets the location of the category.
public string Location { get; }

Property Value

string

Name

Gets the user-friendly name of the category.
public string Name { get; }

Property Value

string

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

bool

GetHashCode()

public override int GetHashCode()

Returns

int

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.
To top