IMetabase.SpecialObject

Syntax

SpecialObject(Index: MetabaseSpecialObject): IMetabaseObjectDescriptor;

SpecialObject[Index: Prognoz.Platform.Interop.Metabase.MetabaseSpecialObject]: Prognoz.Platform.Interop.Metabase.IMetabaseObjectDescriptor;

Parameters

Index. Type of special repository object.

Description

The SpecialObject property determines the repository object that is a special one.

Comments

The Index parameter sends the object type.

Example

Executing the example requires that the repository contains a map with the RUSSIA identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
Begin
    MB := MetabaseClass.Active;
    MB.SpecialObject(MetabaseSpecialObject.DefaultTopobase) := MB.ItemById("RUSSIA");
End Sub UserProc;
Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
Begin
    MB := Params.Metabase; ;
    MB.SpecialObject[MetabaseSpecialObject.msoDefaultTopobase] := MB.ItemById[
"RUSSIA"];
        
End Sub;

After executing this example the RUSSIA map is set as a default map for the current repository.

See also:

IMetabase