Access a repository folder

Class library usage, coding and language questions.
anzacthecat
Posts: 31
Joined: Mon Jan 10, 2011 1:05 pm

Access a repository folder

Post by anzacthecat » Wed May 11, 2011 11:20 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Access a repository folder

Post by Support Team » Wed May 11, 2011 12: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
.
Image