GetPublicFolder

Description

Returns the Folder object that represents the Public Queries folder

Note: You must call SetSession on the Workspace object before calling GetPublicFolder, if you have not created a Session object.

Syntax

VBScript


workspace.GetPublicFolder 

Perl


$workspace->GetPublicFolder(); 
Identifier
Description
workspace
The Workspace object obtained from the current session.
Return value
Returns the Folder object that represents the Public Folder.

Example

Perl

my $ws;
eval { $ws = $session->GetWorkSpace(); };
die "unable to get workspace: $@\n" if $@;

my $pub;
eval { $pub = $ws->GetPublicFolder(); };
die "unable to get Public Queries folder: $@\n" if $@;