IMetabaseObjectDescriptor.CommonClassName

Syntax

CommonClassName([CasePlural: NameCasePlural = 0]): String;

CommonClassName[CasePlural: Prognoz.Platform.Interop.Metabase.NameCasePlural]: string;

Parameters

CasePlural.  Case in which the name should be set.

Description

The CommonClassName property returns a name of the repository object class in the specified case.

Example

Executing this example requires that the repository contains a cube with the Cube_1 identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    Descr, Desc: IMetabaseObjectDescriptor;
    s, s1: string;
Begin
    MB := MetabaseClass.Active;
    Desc := Mb.ItemById("Cube_1");
    s := Desc.CommonClassName(NameCasePlural.Accusative);
    s1 := Desc.CommonClassName(NameCasePlural.AccusativePlural);
End Sub UserProc;
Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Descr, Desc: IMetabaseObjectDescriptor;
    s, s1: string;
Begin
    MB := Params.Metabase;
    Desc := Mb.ItemById["Cube_1"];
    s := Desc.CommonClassName[NameCasePlural.ncAccusative];
    s1 := Desc.CommonClassName[NameCasePlural.ncAccusativePlural];
End Sub;

After executing this example the "S" variable contains the "standard cube" value, the "S1" variable contains "standard cubes" value.

See also:

IMetabaseObjectDescriptor