IMetabaseObjectDescriptor.EditDescriptor

Syntax

EditDescriptor: IMetabaseObjectDescriptor;

Description

The EditDescriptor method edits description of the repository object.

Example

Executing the example requires that the repository contains an object with the TSDB identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MDesc: IMetabaseObjectDescriptor;
Begin
    MB := MetabaseClass.Active;
    MDesc := MB.ItemById("TSDB");
    MDesc := MDesc.EditDescriptor;
    MDesc.Description := "Outdated object version " + MDesc.Id;
    MDesc.Id := MDesc.Id + "_Old";
    MDesc.Name := MDesc.Name + " (Outdated version)";
    MDesc.SaveDescriptor;
End Sub UserProc;

After executing the example the description of the specified object is changed.

See also:

IMetabaseObjectDescriptor

IMetabaseObjectDescriptor.SaveDescriptor