Class DataModelPropertyAttribute
Represents an attribute that describes a data model property
[AttributeUsage(AttributeTargets.Property)]
public class DataModelPropertyAttribute : Attribute
- Inheritance
-
objectDataModelPropertyAttribute
- Inherited Members
Properties
Affix
Gets or sets an optional affix to show behind displaying elements in the UI.
public string? Affix { get; set; }
Property Value
Description
Gets or sets the user-friendly description for this property, shown in the UI.
public string? Description { get; set; }
Property Value
ListItemName
Gets or sets the name of list items, only applicable to enumerable data model properties
public string? ListItemName { get; set; }
Property Value
MaxValue
Gets or sets an optional maximum value, this value is not enforced but used for percentage calculations.
public object? MaxValue { get; set; }
Property Value
- object
MinValue
Gets or sets an optional minimum value, this value is not enforced but used for percentage calculations.
public object? MinValue { get; set; }
Property Value
- object
Name
Gets or sets the user-friendly name for this property, shown in the UI.
public string? Name { get; set; }
Property Value
Prefix
Gets or sets the an optional prefix to show before displaying elements in the UI.
public string? Prefix { get; set; }
Property Value
ResetsDepth
Gets or sets whether this property resets the max depth of the data model, defaults to true
public bool ResetsDepth { get; set; }