IMetabaseObjectDescriptor.Names

Syntax

Names: IMetabaseObjectNames;

Names: Prognoz.Platform.Interop.Metabase.IMetabaseObjectNames;

Description

The Names property returns a collection of the object names for different languages.

Example

Executing the example requires that the repository contains an object with the ObjTest identifier that has the name for the Spanish language (Argentina).

Add links to the ForeSystem, Metabase system assemblies.

Sub UserProc;
Var
    Obj: IMetabaseObjectDescriptor;
    NamesL: IMetabaseObjectNames;
    NameLocale: IMetabaseObjectName;
Begin
    Obj := MetabaseClass.Active.ItemById("ObjTest").EditDescriptor;
    NamesL := Obj.Names;
    NameLocale := NamesL.FindByLocale(LocaleCodeID.Spanish_Argentina);
    NameLocale.Name := "Escenario";
    Obj.SaveDescriptor
End Sub UserProc;
Imports Prognoz.Platform.Interop.ForeSystem;
 
Public Shared Sub Main(Params: StartParams);
Var
    Obj: IMetabaseObjectDescriptor;
    NamesL: IMetabaseObjectNames;
    NameLocale: IMetabaseObjectName;
Begin
    Obj := Params.Metabase.ItemById[
"ObjTest"].EditDescriptor();
    NamesL := Obj.Names;
    NameLocale := NamesL.FindByLocale(LocaleCodeID.lcidSpanish_Argentina);
    NameLocale.Name := 
"Escenario";
    Obj.SaveDescriptor();
End Sub;

The name for the Spanish language is changed for the object after executing this example.

See also:

IMetabaseObjectDescriptor