IMetabaseObjectFindInfo.ScanNestedNamespaces

Syntax

ScanNestedNamespaces: Boolean;

Description

The ScanNestedNameSpaces property determines whether the search was performed by nested namespaces.

Comments

The property is set to False by default, the search is performed among the repository objects. If the property is set to True, for the objects that are the containers for other objects are checked during the search. These objects are MDM repository, Time series database, Modeling container, Assembly.

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MDescs: IMetabaseObjectDescriptors;
    MDesc: IMetabaseObjectDescriptor;
    FInfo: IMetabaseObjectFindInfo;
Begin
    MB := MetabaseClass.Active;
    FInfo := MB.CreateFindInfo;
    FInfo.Attribute := FindAttribute.Name;
    FInfo.ScanNestedNamespaces := True;
    FInfo.Text := "Model";
    FInfo.WholeWordsOnly := False;
    MDescs := MB.Find(FInfo);
    For Each MDesc In MDescs Do
    Debug.WriteLine("Identifier: " + MDesc.Id + "; Name: " + MDesc.Name);
    End For;
End Sub UserProc;

After executing the example all objects that contain in their name the Model text are searched. Search is performed over the whole repository. Objects that are the containers for other objects are also checked. Names and identifiers of the found objects are displayed in the development environment console.

See also:

IMetabaseObjectFindInfo