Struct ContentFolderId
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
FolderType
The type of the folder.
public FolderType FolderType { get; }
Property Value
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
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
stringThe 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
ContentFolderIdright
ContentFolderId
Returns
- bool
operator !=(ContentFolderId, ContentFolderId)
Tests the two entries for inequality.
public static bool operator !=(ContentFolderId left, ContentFolderId right)
Parameters
left
ContentFolderIdright
ContentFolderId
Returns
- bool