ContainersContent: Boolean;
The ContainersContent property determines whether search is executed among objects in container objects.
Available values:
True. Search is executed among objects in container objects.
False. Default value. Search is not executed among objects in container objects.
Executing the example requires that the repository contains a dictionary with the DICTIONARY identifier.
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.ClassId := MetabaseObjectClass.KE_CLASS_DIMSELECTIONSCHEMA;
FInfo.Scope := MB.ItemById("DICTIONARY");
FInfo.InternalObjects := True;
FInfo.ContainersContent := True;
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 child objects that are selection schemas for the specified dictionary are searched. Identifiers and names of found objects will be displayed in the development environment console.
See also: