Class RegisterAdditionalActionAttribute
Registers an additional action for form components.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class RegisterAdditionalActionAttribute : Attribute
- Inheritance
-
objectAttributeRegisterAdditionalActionAttribute
- Extension Methods
Remarks
Use attribute to register additional action to the system. It is not mandatory to register additional action. Form component implementation can instantiate specific action itself and call AddAdditionalAction(IAdditionalAction) method. Registered additional action is available for fields with specific field data types.
Constructors
RegisterAdditionalActionAttribute(string, Type, string, string, string[], string, string[])
Initializes a new instance of the RegisterAdditionalActionAttribute class.
public RegisterAdditionalActionAttribute(string systemIdentifier, Type additionalActionType, string name, string description = null, string[] targetFieldDataTypes = null, string category = "default", string[] formComponentLimitations = null)
Parameters
systemIdentifierstringUnique system identifier of the additional action.
additionalActionTypeTypeType implementing the AdditionalAction<TProperties, TClientProperties>.
namestringName of the additional action.
descriptionstringDescription of the additional action, null by default.
targetFieldDataTypesstring[]Target FieldDataType for which the additional action will be applied. If
null, the additional action is registered to all data types.categorystringformComponentLimitationsstring[]Specifies form component identifiers for which the additional action will be available exclusively. Default value is
null, which means the additional action can be used with any form component without limitations.
Properties
Category
public string Category { get; }
Property Value
- string
Description
Description of the additional action, null by default.
public string Description { get; }
Property Value
- string
FormComponentLimitations
Some additional actions may only be compatible with a limited set of form components.
This property contains form component identifiers for which the additional action will be available exclusively.
Pass null if the additional action can be used with any form component without limitations.
public string[] FormComponentLimitations { get; }
Property Value
- string[]
MarkedType
Type implementing the AdditionalAction<TProperties, TClientProperties>.
public Type MarkedType { get; }
Property Value
- Type
Name
Name of the additional action.
public string Name { get; }
Property Value
- string
SystemIdentifier
Unique system identifier of the additional action.
public string SystemIdentifier { get; }
Property Value
- string
TargetFieldDataTypes
Target field data types for which the additional action will be available. Pass FieldDataType.All to provide the additional action to all fields no matter what type they are.
public string[] TargetFieldDataTypes { get; }
Property Value
- string[]