Access a repository folder : Automation API

Access a repository folder

Class library usage, coding and language questions.

Access a repository folder

Postby anzacthecat » Wed May 11, 2011 12:20 pm

How do I access a Repository Folder directly? I am doing a lot of repetition of repo.FolderName.Item and I would like to put something like Folder currentFolder = repo.FolderName and then
use currentFolder instead of repo.FolderName in the rest of the code.
anzacthecat
 
Posts: 29
Joined: Mon Jan 10, 2011 2:05 pm

Re: Access a repository folder

Postby Support Team » Wed May 11, 2011 1:07 pm

Hi,

if you for example add a folder called MyFolder to your repository you can use following code to get this folder:
RepoFolderRepositoryFolders.MyFolderFolder folder = repo.YourApplicationFolder.myFolder;


Kind regards,
Tobias
Support Team
User avatar
Support Team
Site Admin
 
Posts: 4837
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests