IMetabaseObjectFindInfo.ScanNestedNamespaces

Syntax

ScanNestedNamespaces: Boolean;

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. The MDM repository, Time series database, Modeling container, Assembly, .NET assembly are these objects.

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;
Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MDescs: IMetabaseObjectDescriptors;
    MDesc: IMetabaseObjectDescriptor;
    FInfo: IMetabaseObjectFindInfo;
Begin
    MB := Params.Metabase;
    FInfo := MB.CreateFindInfo();
    FInfo.Attribute := FindAttribute.fnaName;
    FInfo.ScanNestedNamespaces := True;
    FInfo.Text := "Model";
    FInfo.WholeWordsOnly := False;
    MDescs := MB.Find(FInfo);
    For Each MDesc In MDescs Do
        System.Diagnostics.Debug.WriteLine("Identifier: " + MDesc.Id + "; Name: " + MDesc.Name);
    End For;
End Sub;

After executing this 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