Configuring PSQL Servers with DTO : DtoCategories Collection
 
DtoCategories Collection
This object is a collection of DtoCategory objects representing all the setting categories available for a particular DtoSession object.
Properties
 
Count
Returns the number of members in a collection.
Item
Returns a specific member of a collection.
Methods
None
Remarks
This collection allows retrieving individual items by passing a 1-based ordinal.
Use the Count property to find the number of members in the collection.
num_categories = my_categories.Count
Use the Item property to retrieve the one-based index of a collection.
Set first_item = my_categories(1)
Example
’ instantiate session object and connect to server
Dim my_session as new DtoSession
Dim result as DtoResult
result = my_session.Connect("myserver", "username", "password")
 
’ now obtain categories collection
Dim my_categories as DtoCategories
Set my_categories = my_session.Categories
See Also
DtoCategory Object
DtoSession Object