IMetabase.Definition

Syntax

Definition: IMetabaseDefinition;

Definition: Prognoz.Platform.Interop.Metabase.IMetabaseDefinition;

Description

The Definition property returns the current repository description, stored in repositories manager.

Example

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MDef: IMetabaseDefinition;
Begin
    MB := MetabaseClass.Active;
    MDef := MB.Definition;
    Debug.WriteLine(MDef.LogonData.ParamValue("SERVER"));
    Debug.WriteLine(MDef.LogonData.ParamValue("SCHEME"));
End Sub UserProc;
Public Shared Sub Main(Params: StartParams);
    Var
    MB: IMetabase;
    MDef: IMetabaseDefinition;
Begin
    MB := Params.Metabase;
    MDef := MB.Definition;
    System.Diagnostics.Debug.WriteLine(MDef.LogonData.ParamValue["SERVER"]);
    System.Diagnostics.Debug.WriteLine(MDef.LogonData.ParamValue["SCHEME"]);
End Sub;

After executing the example a name of server and scheme, to which the current connection is performed, is displayed in the development environment console.

See also:

IMetabase