IMetabaseObjectName.Description

Syntax

Description: String;

Description: string;

Description

The Description property determines a note (description) for the object name.

Example

The example requires that the repository contains an object with the Object identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    Obj: IMetabaseObjectDescriptor;
    NamesL: IMetabaseObjectNames;
    NameLocale: IMetabaseObjectName;
Begin
    Obj := MetabaseClass.Active.ItemById("Object").EditDescriptor;
    NamesL := Obj.Names;
    NameLocale := NamesL.Add(LocaleCodeID.Spanish_Argentina);
    NameLocale.Name := "Escenario";
    NameLocale.Description := "Created 29.10.2009";
    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[
"Object"].EditDescriptor();
    NamesL := Obj.Names;
    NameLocale := NamesL.Add(LocaleCodeID.lcidSpanish_Argentina);
    NameLocale.Name := 
"Escenario";
    NameLocale.Description := 
"Created 29.10.2009";
    Obj.SaveDescriptor();
End Sub;

After executing the example, a name in Spanish is added for the object.

See also:

IMetabaseObjectName