IMetabaseObjectDescriptor.IsSpecial

Syntax

IsSpecial(Index: MetabaseSpecialObject): Boolean;

IsSpecial(Index: Prognoz.Platform.Interop.Metabase.MetabaseSpecialObject): boolean;

Parameters

Index. Type of special repository object.

Description

The IsSpecial property indicates whether the object belongs to special repository objects.

Comments

If the property is set to True, the current object is the special repository object. The type of special repository object is specified in the Index parameter.

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.ItemById(
"RUSSIA").IsSpecial(MetabaseSpecialObject.DefaultTopobase) := True;
End Sub UserProc;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
Begin
    MB := Params.Metabase;
    MB.ItemById["RUSSIA"].IsSpecial[MetabaseSpecialObject.msoDefaultTopobase] := True;
End Sub;

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

See also:

IMetabaseObjectDescriptor