Class CustomAttributeBase
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a custom attribute.
public abstract class CustomAttributeBase : GlobalSerializableClassicBase
- Inheritance
-
CustomAttributeBase
- Derived
Constructors
CustomAttributeBase()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.CustomAttribute class.
public CustomAttributeBase()
Properties
DisplayName
The display name of the custom attribute.
public string DisplayName { get; set; }
Property Value
DisplayValue
Gets the display value of the custom attribute.
public abstract string DisplayValue { get; set; }
Property Value
HasValue
Gets whether the custom attribute has a value assigned.
public abstract bool HasValue { get; }
Property Value
Identifier
Gets or sets the unique identifier of the custom attribute.
public Guid Identifier { get; set; }
Property Value
Methods
Clone()
Returns a CENTREL.XIA.Configuration.Types.CustomAttributeBase cloned from this object.
public CustomAttributeBase Clone()
Returns
- CustomAttributeBase
A CENTREL.XIA.Configuration.Types.CustomAttributeBase.
FromValueType(Type)
Creates a new custom attribute for the specified value type.
public static CustomAttributeBase FromValueType(Type valueType)
Parameters
valueType
TypeThe value type for the custom attribute.
Returns
- CustomAttributeBase
A new custom attribute for the specified value type.
GetTypeDisplayName(Type)
Gets the custom attribute value type display name for the specified type.
public static string GetTypeDisplayName(Type type)
Parameters
type
TypeThe type to resolve.
Returns
- string
The custom attribute value type display name for the specified type.
GetValue()
Gets the configured value for the parameter.
public object GetValue()
Returns
- object
The configured value for the parameter.
ToString()
Returns the custom attribute in a human readable format.
public override string ToString()
Returns
- string
The custom attribute in a human readable format.