IUserProfile.Prop

Fore Syntax

Prop(PropName: String): Variant;

Fore.NET Syntax

Prop[PropName: String]: Object;

Parameters

PropName. Name of the additional property of the user.

Description

The Prop property determines the value of the additional property of the user.

Comments

The collection of additional properties of the user is available in the Properties property. If on writing the Prop property as the value of the PropName parameter the name of non-existent additional property is specified, this property will be added.

Fore Example

Sub UserProc;
Var
    Mb: IMetabase;
    User: IMetabaseUser;
    Prof: IUserProfile;
Begin
    Mb := MetabaseClass.Active;
    User := Mb.LogonSession.User;
    Prof := User.Profile.Edit;
    Prof.Prop("Prop1") := "Value1";
    Prof.Prop("Prop2") := "Value2";
    Prof.Apply;
End Sub UserProc;

On executing the example the profile of the user who logged in the repository is changed. Two additional properties will be changed in the profile. If there are no specified properties in the profile, they will be created.

Fore.NET Example

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

Public Shared Sub Main(Params: StartParams);
Var
    Mb: IMetabase;
    User: IMetabaseUser;
    Prof: IUserProfile;
Begin
    Mb := Params.Metabase;
    User := Mb.LogonSession.User;
    Prof := User.Profile.Edit();
    Prof.Prop["Prop1"] := "Value1";
    Prof.Prop["Prop2"] := "Value2";
    Prof.Apply();
End Sub;

On executing the example the profile of the user who logged in the repository is changed. Two additional properties will be changed in the profile. If there are no specified properties in the profile, they will be created.

See also:

IUserProfile