Table of Contents

Struct ContentFolderId

Namespace
Kentico.Xperience.Admin.Base
Assembly
Kentico.Xperience.Admin.Base.dll

Represents a unique identifier of a content folder.

public readonly struct ContentFolderId
Extension Methods

Constructors

ContentFolderId(int?, FolderType)

Initializes a new instance of the ContentFolderId struct.

public ContentFolderId(int? id, FolderType folderType)

Parameters

id int?
folderType FolderType

Properties

AllContentItems

The all content items folder.

public static ContentFolderId AllContentItems { get; }

Property Value

ContentFolderId

FolderType

The type of the folder.

public FolderType FolderType { get; }

Property Value

FolderType

Id

The raw ID of the folder.

public int? Id { get; }

Property Value

int?

Invalid

The invalid folder.

public static ContentFolderId Invalid { get; }

Property Value

ContentFolderId

Methods

Equals(ContentFolderId)

public bool Equals(ContentFolderId other)

Parameters

other ContentFolderId

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Parse(string)

Parses the string ID into a ContentFolderId instance.

public static ContentFolderId Parse(string id)

Parameters

id string

The string representation of the folder identifier.

Returns

ContentFolderId

The parsed folder identifier.

Remarks

Returns Invalid if the identifier is not valid.

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ContentFolderId, ContentFolderId)

Tests the two entries for equality.

public static bool operator ==(ContentFolderId left, ContentFolderId right)

Parameters

left ContentFolderId
right ContentFolderId

Returns

bool

operator !=(ContentFolderId, ContentFolderId)

Tests the two entries for inequality.

public static bool operator !=(ContentFolderId left, ContentFolderId right)

Parameters

left ContentFolderId
right ContentFolderId

Returns

bool