IMetabaseObjectDescriptor.Params

Syntax

Params: IMetabaseObjectParams;

Description

The Params property returns a collection of the parameters for the repository object.

Comments

The Params property is not used to work with MDM dictionaries. To work with MDM dictionaries, use the IRdsParams.

Example

Executing the example requires a repository object with the CUBE identifier.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    Desc: IMetabaseObjectDescriptor;
    ObjParams: IMetabaseObjectParams;
    Param: IMetabaseObjectParam;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    Desc := Mb.ItemById(
"CUBE");
    ObjParams := Desc.Params;
    Debug.WriteLine(
"Number of object parameters: " + ObjParams.Count.ToString);
    Debug.WriteLine(
"Object parameters: ");
    Debug.Indent;
    
For i:=0 To ObjParams.Count-1 Do
        Param := ObjParams.Item(i);
        Debug.WriteLine((i+
1).ToString + ". " + Param.Name);
    
End For;
    Debug.Unindent;
End Sub UserProc;

After executing the example the console window displays:

See also:

IMetabaseObjectDescriptor