Show/Hide Toolbars

Therefore Programming Interface 3.0

Gets a language specific list of categories and folders from Thereforeā„¢ where the connected user has the specified permissions.

 

Namespace: Therefore.API

 

 

 

hmtoggle_plus0Example

Visual Basic

Imports Therefore.API

'...

 

' Connect to the Thereforeā„¢ Server

Dim server As TheServer = New TheServer()

    server.Connect(TheClientType.CustomApplication)

 

' Get category and folder lists from the server

Dim categories As TheFolderItemList Nothing

Dim folders As TheFolderList = Nothing

Dim accessmask As TheRoleAccessMask = New TheRoleAccessMask()

server.GetCategories(accessmask_

    TheGetObjectFlags.GetAllFolderscategoriesfolders)

 

' Optional: Show a message box with both lists

System.Windows.Forms.MessageBox.Show(categories.ToString() _

    + vbNewLine + vbNewLine + folders.ToString() )

C#

using Therefore.API;

//...

 

// Connect to the Thereforeā„¢ Server

TheServer server = new TheServer();

server.Connect(TheClientType.CustomApplication);

 

// Get category and folder lists from the server

TheFolderItemList categories;

TheFolderList folders;

server.GetCategories(new TheRoleAccessMask(), 

    TheGetObjectFlags.GetAllFolders, out categories, out folders);

 

// Optional: Show a message box with both lists

System.Windows.Forms.MessageBox.Show(categories.ToString() 

    + "\r\n\r\n" + folders.ToString());

 

 

 

Ā© 2022 Therefore Corporation, all rights reserved.