This article shows how to get a list of types using the Ubisense .NET API.
None. You can use this article on its own.
Before you start, remember to:
Add the Ubisense references to your application
You can list the types present in your database with
the
Ubisense.UBase.Inheritance.Descendants method. This
returns a list of symbols that inherit from the argument supplied. The
following example will return the list of types defined by the user:
|
All user-defined types inherit from
UEnterprise::UserDefined.
The following example will return the list of all types:
|
All types inherit from
UBase::Object.
You can find an object's static type and dynamic
type in its
DynamicType and
StaticType properties. The following example prints the name of the object and the
name of the static and dynamic types of the object for a row in the relation
Ubisense.UName.Naming.ObjectName:
|
Normally, the types listed in Site Manager are those
that inherit from
UEnterprise::UserDefined. For example, if you use Site Manager to add the type
Person without specifying any ancestors, it will be shown like this:

You can view all types in Site Manager by setting a
registry string value called
managed_base_type inMy Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Ubisense 2.1\Platform\Config
to the value
UBase::Object.
Ubisense recommends that you do not change your managed base type in this way without good reason. You do not normally need to manage any types that you did not define.
If you set the managed base type to be
UBase::Object, Site Manager will show all types in your database, for example:
