myStoreModule.ListNamespaces(storeName[, isUserSpecific][, timeoutInSeconds]);
| myStoreModule | The name of the Store module instance |
| storeName | A STRING naming the store containing the namespaces you are interested in; set this to an empty string to reference the default store in the cluster, if one has been defined; REQUIRED |
| isUserSpecific | If TRUE, the system will look only for private keys; if FALSE then the system will look for global keys; OPTIONAL, defaults to FALSE |
| timeoutInSeconds | The number of seconds to wait for the underlying SOAPCALL to complete; set to zero to wait forever; OPTIONAL, defaults to zero |
| Return: | A ListNamespacesResponseRec RECORD |
The ListNamespaces function gets a list of namespaces defined in the specified store.
Example:
IMPORT STD;
myStore := STD.System.Store();
// List all namespaces in the default store
namespaces := myStore.ListNamespaces('');
OUTPUT(namespaces.namespaces);
// List namespaces in a specific store
appNamespaces := myStore.ListNamespaces('MyApplicationStore');
OUTPUT(appNamespaces.namespaces);
// List user-specific namespaces
privateNamespaces := myStore.ListNamespaces('MyPrivateStore', TRUE);
OUTPUT(privateNamespaces.namespaces);See Also: ListNamespacesResponseRec