IAdoMdCatalog.Open

Fore Syntax

Open: IAdoMdCatalogInstance;

Fore.NET Syntax

Open(): Prognoz.Platform.Interop.AdoMd.IAdoMdCatalogInstance;

Description

The Open method opens the ADOMD catalog.

Fore Example

Executing the example requires that the repository contains an ADOMD catalog with the ADOMDTest identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Catalog: IAdoMdCatalog;
    CatalogInst: IAdoMdCatalogInstance;
Begin
    MB := MetabaseClass.Active;
    Catalog := MB.ItemById("ADOMDTest").Bind As IAdoMdCatalog;
    CatalogInst := Catalog.Open;
End Sub UserProc;

The open instance of the ADOMD catalog is obtained when executing this example.

Fore.NET Example

Executing the example requires that the repository contains an ADOMD catalog with the ADOMDTest identifier. This example is an entry point of the .NET assembly.

Imports Prognoz.Platform.Interop.AdoMd;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Catalog: IAdoMdCatalog;
    CatalogInst: IAdoMdCatalogInstance;
Begin
    MB := Params.Metabase;
    Catalog := MB.ItemById["ADOMDTest"].Bind() As IAdoMdCatalog;
    CatalogInst := Catalog.Open();
End Sub;

The open instance of the ADOMD catalog is obtained when executing this example.

See also:

IAdoMdCatalog