Prop(PropName: String): Variant;
Prop[PropName: String]: Object;
PropName. Name of the additional property of the user.
The Prop property determines the value of the additional property of the user.
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.
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.
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: