Class TokenPropertyInfo
The description of a property in a token definition, obtained through queries on a ITokenResolver
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure.Token
Assembly: Aruba.Infrastructure.dll
Syntax
public class TokenPropertyInfo
Constructors
View SourceTokenPropertyInfo(PropertyInfo, string, string, IEnumerable<object>, bool)
Initializes a new instance of the TokenPropertyInfo class.
Declaration
public TokenPropertyInfo(PropertyInfo propInfo, string friendlyName, string desc, IEnumerable<object> allowedValueObjects, bool isPreset = false)
Parameters
Type | Name | Description |
---|---|---|
PropertyInfo | propInfo | The prop information. |
string | friendlyName | The friendly name. |
string | desc | The description. |
IEnumerable<object> | allowedValueObjects | The allowed value objects. |
bool | isPreset | A value indicating whether the data is preset and cannot be modified. |
Properties
View SourceAllowedValues
Gets the possible values the token definition property can have.
Declaration
public IEnumerable<AllowedValue> AllowedValues { get; }
Property Value
Type | Description |
---|---|
IEnumerable<AllowedValue> |
Description
Gets a more detailed description of the token definition's property.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
string |
FriendlyName
Gets a friendly name for the token definition's property.
Declaration
public string FriendlyName { get; }
Property Value
Type | Description |
---|---|
string |
IsPreset
Gets a value indicating whether the data is modifiable in the token UI.
Declaration
public bool IsPreset { get; }
Property Value
Type | Description |
---|---|
bool |
IsTextModifiable
Gets a value indicating whether the property is modifiable in text.
Declaration
public bool IsTextModifiable { get; }
Property Value
Type | Description |
---|---|
bool |
IsValueRestricted
Gets a value indicating whether the value is restricted or preset.
Declaration
public bool IsValueRestricted { get; }
Property Value
Type | Description |
---|---|
bool |
PropertyInfo
Gets the PropertyInfo used to set the corresponding value on the token definition.
Declaration
public PropertyInfo PropertyInfo { get; }
Property Value
Type | Description |
---|---|
PropertyInfo |