This article shows how to iterate over the
ObjectName relation of a
Naming schema to
populate a list of its contents.

None. You can use this article on its own.
Remember to:
Add the Ubisense references to your application.
We need to instantiate a cached Naming schema object and connect it to the server:
|
Since the instantiated Naming schema object is a cached schema, we can iterate over its ObjectName relation, filtering the results with its index methods to find a specific object. If we don't use a parameter in these methods, we will iterate over the whole table.
|
Once we have finished using the Naming schema object, we should disconnect it from the server and dispose of it:
|
The form of the application contains a declaration for a Naming schema object
When the Form loads, the Naming schema is instantiated and connected to the server.
When the user clicks the button, the application
iterates over the ObjectName relation
and adds every row's name element to
the application's ListBox.
Create some objects using the Site Manager tool.
Run the application and verify that you get the list of the objects you created before.
Try deleting some objects in Site Manager or add some more.
Return to your application and click the button again to update the results.
