AreaIncludeDB: Boolean;
The AreaIncludeDB property determines the attribute of search among the DBMS subjects.
If the property is set to True, the search among the DBMS security subjects will be performed.
The search will be performed among the users added in the security manager and among users for which the attribute of deferred loading of description is enabled.
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.SubjectCriteria(SecuritySubjectType.Group) := True;
Search.AreaIncludeDB := True;
Search.AreaIncludeNT := True;
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;
Security subjects - users and groups among domain subjects and DBMS subjects - are searches for when executing the example. Name and description of found subjects will be displayed in the development environment console.
The specified procedure is an entry point for the .NET assembly.
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Search: ISecuritySubjectsSearch;
Subjects: ISecuritySubjects;
Subject: ISecuritySubject;
Begin
MB := Params.Metabase;
Search := MB.Security.NewSubjectsSearch();
Search.NameCriteria := "Ar*";
Search.SubjectCriteria[SecuritySubjectType.sstUser] := True;
Search.SubjectCriteria[SecuritySubjectType.sstGroup] := True;
Search.AreaIncludeDB := True;
Search.AreaIncludeNT := True;
Search.ExecuteSearch();
Subjects := Search.Subjects;
If Subjects.Count > 0 Then
For Each Subject In Subjects Do
System.Diagnostics.Debug.WriteLine(Subject.Name + ": " + Subject.Description);
End For;
End If;
End Sub;
Security subjects - users and groups among domain subjects and DBMS subjects - are searches for when executing the example. Name and description of found subjects will be displayed in the development environment console.
See also: