IMetabaseObjectDescriptor.CommonClassName

Syntax

CommonClassName([CasePlural: NameCasePlural = 0]): 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;

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

See also:

IMetabaseObjectDescriptor