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)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ItemTypeCategory other)

Parameters

other ItemTypeCategory

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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 string

Category full name.

Returns

bool

Boolean.

To top