GetAllFeatures: IStringList;
GetAllFeatures: System.Collections.Generic.IList<System.String>;
The GetAllFeatures method returns a 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, place the Button component named Button1 on the form.
Add links to the Host, Ui, Forms, Collections system assemblies.
The example is a handler of the OnClick event for the Button1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
LicManager: ILicenseManager;
Features: IStringList;
Begin
LicManager := WinApplication.Instance.LicenseManager;
Features := LicManager.GetAllFeatures;
WinApplication.InformationBox(Features.AsString);
End Sub Button1OnClick;
Clicking the button displays a message with a list of features.
To execute the example, place the Button component named Button1 on the form.
Add links to the Host, Ui, Fore, ForeSystem system assemblies.
The example is a handler of the OnClick event for the Button1 component.
Imports Prognoz.Platform.Interop.Host;
Imports Prognoz.Platform.Interop.Ui;
Imports Prognoz.Platform.Interop.Fore;
Imports Prognoz.Platform.Interop.ForeSystem;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
WinApp: WinApplicationClassClass = New WinApplicationClassClass();
Svc: IForeServices;
RunContext: ForeRuntimeContext;
LicManager: ILicenseManager;
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;
The example of Fore.NET example execution matches with that in the Fore example.
See also: