IContext Interface
Namespace: NextDesign.Desktop
Description
When an extension is executed, it is given a context.
The extension implementation can refer to shared variables and running extension configuration information through this context.
Belongs to
Name | Description |
---|---|
Global | A group of APIs to access the execution environment and execution status of the extension. |
Derived from
Name | Description |
---|---|
IEventContext | Provides access to the execution context of an event. |
ICommandContext | Provides the command execution context. |
Property
Name | Description |
---|---|
App | Extension execution environment shared variables |
Application | [Obsolete] Extension execution environment shared variables |
ContextOption | Context option Option definition for the period this context is valid |
ExtensionInfo | Currently valid extension information |
Method
Name | Description |
---|---|
GetProperties | Gets a list of properties. |
GetProperty | Gets the property value of the specified identifier. If the corresponding identifier does not exist, null is returned. |
GetPropertyNames | Gets a list of property identifiers. |
GetResourceString | Gets the string of the specified resource key. The resource is searched for in the resource file of the extension that is valid in this context, with the following priority: 1. The execution language of the current application 2. Japanese resource 3. The first other language resource found Note that if the corresponding resource key does not exist, it is not identified as a resource key and the specified key is returned as is. Also, if null or an empty string is specified as the resource key, an empty string is returned. |
GetResourceString1 | Gets the string of the specified resource key. The substitution "{0}" defined in the resource string is replaced with the string representation of param1 specified in the argument, and the string is returned. Note that the substitution of resource parameters conforms to String.Format in C#. For details on how to specify resource strings and how to specify resource keys, see GetResourceString(). |
GetResourceString2 | Gets the string of the specified resource key. The substitution "{0},{1}" defined in the resource string is replaced with the string representation of param1, param2 specified in the argument, and the string is returned. Note that the substitution of resource parameters conforms to String.Format in C#. For details on how to specify a resource string and how to specify a resource key, see GetResourceString(). |
GetResourceString3 | Gets the string of the specified resource key. The substitutions "{0},{1},{2}" defined in the resource string are replaced with the string representations of param1, param2, and param3 specified in the arguments, and then returned. Replacement of resource parameters conforms to the C# String.Format. For details on how to specify a resource string and how to specify a resource key, see GetResourceString(). |
HasProperty | Checks whether a property value with the specified identifier exists. Returns True if a property value with the specified identifier exists. |
RemoveProperty | Removes the property value of the specified identifier name. If the property value of the corresponding identifier name does not exist, nothing is done. |
SetProperty | Sets the property value of the specified identifier name. If an existing identifier name is specified, the property value is updated with the given value. |