AreaIncludeMetabaseNT: Boolean;
The AreaIncludeMetabaseNT property determines the attribute of search among the domain security subjects, which are registered in the repository and for which the attribute of lazy loading of description is set.
The property is relevant if the AreaIncludeNT property is set to False.
If the AreaIncludeMetabaseNT property is set to True value, the search will be executed among the domain users, who will be registered in the repository and for whom the attribute of the lazy loading of description is set.
Sub UserProc;
Var
MB: IMetabase;
Search: ISecuritySubjectsSearch;
Subjects: ISecuritySubjects;
Subject: ISecuritySubject;
Begin
MB := MetabaseClass.Active;
Search := MB.Security.NewSubjectsSearch;
Search.NameCriteria := "Ar*";
Search.SubjectCriteria(SecuritySubjectType.User) := True;
Search.AreaIncludeDB := True;
Search.AreaIncludeMetabaseNT := True;
Search.AreaIncludeNT := False;
Search.ExecuteSearch;
Subjects := Search.Subjects;
If Subjects.Count > 0 Then
For Each Subject In Subjects Do
Debug.WriteLine(Subject.Name + ": " + Subject.Description);
End For;
End If;
End Sub UserProc;
After executing the example the search of users of the DBMS and domain subjects, which are added to the repository and for which the attribute of lazy loading of description is set will be executed. Name and description of found users will be displayed in the development environment console.
See also: