Count: Integer;
Count: System.Int32;
The Count property returns the number of users groups of the active repository.
To execute the example, add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
MG: IMetabaseGroups;
i: Integer;
Begin
MB := MetabaseClass.Active;
MS := MB.Security;
MG := MS.Groups;
Debug.WriteLine("Number of group of users: " + MG.Count.ToString);
End Sub UserProc;
Imports Prognoz.Platform.Interop.Metabase;
…
Public Shared Sub Main(Params : StartParams);
Var
MB: IMetabase;
MS: IMetabaseSecurity;
MG: IMetabaseGroups;
i: Integer;
Begin
MB := Params.Metabase;
MS := MB.Security;
MG := MS.Groups;
System.Diagnostics.Debug.WriteLine("Number of group of users: " + MG.Count.ToString());
End Sub;
After executing the example the console will display the number of group of users in active repository.
See also: