ExtensibilityMethodAttribute Class |
Namespace: Micros.PosCore.Extensibility
public class ExtensibilityMethodAttribute : Attribute
The ExtensibilityMethodAttribute type exposes the following members.
Name | Description | |
---|---|---|
![]() | ExtensibilityMethodAttribute | Initializes a new instance of the ExtensibilityMethodAttribute class |
This example creates a new extension operation that does not take any parameters. The button argument for this operation would be set to the following (assuming the extension application name is set to "MyExtApp")
Type=DLL;AppName=MyExtApp;FileName=MyExtApp.dll;Function=MyExtensionMethod
[ExtensibilityMethod] public void MyExtensionMethod() { OpsContext.ShowMessage(string.Format("Hello from '{0}'", ApplicationName)); }
This example creates a new extension operation takes a parameters. The button argument for this operation would be set to the following (assuming the extension application name is set to "MyExtApp")
Type=DLL;AppName=MyExtApp;FileName=MyExtApp.dll;Function=MyExtensionMethod;Arg=abc123
[ExtensibilityMethod] public void MyExtensionMethod(object args) { OpsContext.ShowMessage(string.Format("Hello from '{0}' using args '{1}'", ApplicationName, args)); }