IMetabase.PrivateFolder

Syntax

PrivateFolder: IMetabaseObjectDescriptor;

PrivateFolder: Prognoz.Platform.Interop.Metabase.IMetabaseObjectDescriptor;

Description

The PrivateFolder property returns a private folder of the current user.

Example

Executing the example requires a form with a button. The example is an event handler for a button.

Add a link to the Metabase system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
Begin
    MB := MetabaseClass.Active;
    Debug.Write(MB.PrivateFolder.Id + " " + MB.PrivateFolderRoot.Id);
End Sub Button1OnClick;
 Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    MB: IMetabase;
Begin
    MB := Self.Metabase;
    System.Diagnostics.Debug.Write(MB.PrivateFolder.Id + 
" " + MB.PrivateFolderRoot.Id);
End Sub;

On executing the example the development environment console displays identifier of private folder of the current user and identifier of the root folder for users' private folders.

See also:

IMetabase