IMetabaseObjectDescriptor.CommonClassName

Syntax

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

Parameters

CasePlural - a 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 the example requires that the repository contains a cube with the Cube_1 identifier.

Sub Main;

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 main;

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

See also:

IMetabaseObjectDescriptor