GetAllFeatures: IStringList;
GetAllFeatures: System.Collections.Generic.IList<System.String>;
The GetAllFeatures method returns the list of all available features.
The method returns information about features regardless of the type of the license in use: stand-alone or network.
To execute the example, connect the Ui system assembly, place the Button component with the Button1 identifier on the form. The example is a handler of the OnClick event for the Button1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
LicManager: IUiLicenseManager;
Features: IStringList;
Begin
LicManager := WinApplication.Instance.LicenseManager;
Features := LicManager.GetAllFeatures;
WinApplication.InformationBox(Features.AsString);
End Sub Button1OnClick;
On clicking the button, the message containing list of features is displayed.
To execute the example, add links to the Ui, Fore, ForeSystem system assemblies. Place the Button component with the Button1 identifier on the form. The example is a handler of the OnClick event for the Button1 component. The result of the Fore.NET example execution matches with that in the Fore example.
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
WinApp: WinApplicationClassClass = New WinApplicationClassClass();
Svc: IForeServices;
RunContext: ForeRuntimeContext;
LicManager: IUiLicenseManager;
Features: System.Collections.Generic.IList<System.String>;
s: String;
Begin
Svc := Self.Metabase As IForeServices;
RunContext := Svc.GetRuntime().Context;
LicManager := WinApp.Instance[RunContext].LicenseManager;
Features := LicManager.GetAllFeatures();
s := String.Join(Environment.NewLine, Features);
WinApp.InformationBox(s,New IWin32WindowForeAdapter(Self));
End Sub;
See also: