domains property

List<Domain> get domains

A collection of the domains that exist in the geodatabase.

The collection will be empty if the geodatabase is not loaded.