IMetabase.Profiles

Fore Syntax

Profiles: IUserProfiles;

Fore.NET Syntax

Profiles: Prognoz.Platform.Interop.Metabase.IUserProfiles;

Description

The Profiles property returns the collection of profiles of the repository users.

Comments

This collection will contain profiles of all users created in the security manager of the current repository. Each profile contains the information about e-mail addresses, corresponding to the user and additional properties of the user.

Fore Example

Sub UserProc;
Var
    Mb: IMetabase;
    Profs: IUserProfiles;
    Prof: IUserProfile;
Begin
    Mb := MetabaseClass.Active;
    Profs := Mb.Profiles;
    For Each Prof In Profs Do
        Debug.WriteLine(Profile:  + Prof.Name);
        Debug.WriteLine(Default Email: " + Prof.Email);
    End For;
End Sub UserProc;

On executing the example the names of user profiles and email addresses, set in each profile by default will be displayed in the development environment console.

Fore.NET Example

The specified procedure is an entry point for the .NET assembly.

Imports System.Diagnostics;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    Mb: IMetabase;
    Profs: IUserProfiles;
    Prof: IUserProfile;
Begin
    Mb := Params.Metabase;
    Profs := Mb.Profiles;
    For Each Prof In Profs Do
        Debug.WriteLine(Profile:  + Prof.Name);
        Debug.WriteLine(Default Email: " + Prof.Email);
    End For;
End Sub;

On executing the example the names of user profiles and email addresses, set in each profile by default will be displayed in the development environment console.

See also:

IMetabase