This example shows how you can retrieve a list of all local and subscribed content libraries in your virtual environment.

This example uses the steps that are described in Listing All Content Libraries.

...
// Create a vCloud Suite session (not shown).
 
// Access the Library Service.

var libraryService = ServiceManager.VapiConnection.GetService<Library>();

// List the visible content libraries.

Console.WriteLine("List of all library identifiers: ");
foreach (var libId in libraryService.List())
{
    Console.WriteLine(libId);
}