PrivateFolder: IMetabaseObjectDescriptor;
PrivateFolder: Prognoz.Platform.Interop.Metabase.IMetabaseObjectDescriptor;
The PrivateFolder property determines a private folder .
Executing the example requires a form with a button. Add a link to the Metabase system assembly. The example is an event handler for a button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Mb: IMetabase;
User: IMetabaseUser;
Prof: IUserProfile;
Begin
Mb := MetabaseClass.Active;
User := Mb.LogonSession.User;
Prof := User.Profile.Edit;
Button1.Text := Prof.PrivateFolder.Id;
End Sub Button1OnClick;
After executing the example, clicking the button passes identifier of the current user private folder to button text.
The Fore.NET Example matches with that of the Fore Example.
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Mb: IMetabase;
User: IMetabaseUser;
Prof: IUserProfile;
Begin
Mb := Self.Metabase;
User := Mb.LogonSession.User;
Prof := User.Profile.Edit;
Button1.Text := Prof.PrivateFolder.Id;
End Sub;
See also: