| ActionAttribute Class |
Namespace: Sdl.Desktop.IntegrationApi.Extensions
The ActionAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
| ActionAttribute |
Default constructor for XML serialization.
| |
| ActionAttribute(String) |
Initialize the instance of the action attribute
| |
| ActionAttribute(String, Type) |
Initialize the instance of the action attribute
| |
| ActionAttribute(String, String, String) |
Initialize the instance of the action attribute.
| |
| ActionAttribute(String, String, String, Type) |
Initialize the instance of the action attribute.
|
| Name | Description | |
|---|---|---|
| ContextByType |
Gets or sets the action context in which the action is valid. This can be a view controller type, or null if the action available globally.
(Inherited from AbstractCommandBarItemAttribute.) |
The framework also provides support for getting property values from the PluginResources.resx resource file, which is deployed together with the plug-in manifest. To specify that the value of a certain string property needs to be retrieved from the resource file, annotate the property definition with the PluginResourceAttribute attribute. Users should now specify the name of the resource key, instead of the actual value, as the property value. When no resource string with the specified key can be found, the framework keeps the specified string as the property value. To define non-string properties whose value is stored in the PluginResources.resx resource file, create a string property, which value should be set to a resource key. When consuming the extension, use GetPluginResourceT(String) tio retriece the resource from the plug-in resource file.