Class RoleContentElement
A standalone role content element (a page/text/file), independent of where it is placed in any role's content tree.
public sealed record RoleContentElement : IRoleContentElement
- Inheritance
-
objectRoleContentElement
- Implements
Properties
Changed
When the element was last changed.
[JsonPropertyName("changed")]
public DateTimeOffset Changed { get; init; }
Property Value
- DateTimeOffset
Content
The element's content: its text, or for a file element the path of the stored file relative to the server's content root.
[JsonPropertyName("content")]
public string? Content { get; init; }
Property Value
- string
Created
When the element was created.
[JsonPropertyName("created")]
public DateTimeOffset Created { get; init; }
Property Value
- DateTimeOffset
Extension
The file extension of a file element, without the leading dot.
[JsonPropertyName("extension")]
public string? Extension { get; init; }
Property Value
- string
Filename
Deprecated: the legacy file name or path of a file element; Content is used first.
[JsonPropertyName("filename")]
public string? Filename { get; init; }
Property Value
- string
Id
The element id (a GUID); generated by the server when left empty on create.
[JsonPropertyName("id")]
public string? Id { get; init; }
Property Value
- string
Language
The language of this version of the element; an empty string for the default language. An element exists once per language under the same Id.
[JsonPropertyName("language")]
public string Language { get; init; }
Property Value
- string
Name
The display name of the element.
[JsonPropertyName("name")]
public string? Name { get; init; }
Property Value
- string
Type
The element's type, as the numeric code of the legacy content type (for example 26 for a file).
[JsonPropertyName("type")]
public int Type { get; init; }
Property Value
- int
UserId
The username of whoever created or last saved the element; filled with the caller's name when left empty.
[JsonPropertyName("userId")]
public string? UserId { get; init; }
Property Value
- string