Skip to main content
Skip table of contents

The Properties Class

You can use the same configuration file and command-line mechanisms to set application-specific properties. For example, we could introduce a property to control the maximum file size for our file system application:

CONFIG
# Configuration file for file system application

Filesystem.MaxFileSize=1024    # Max file size in kB

The Ice runtime stores the Filesystem.MaxFileSize property like any other property and makes it accessible programmatically via the Properties class.

To access property values from within your program, you need to acquire the communicator's properties by calling getProperties. Most of the methods on the returned Properties object involve reading properties, setting properties, and parsing properties.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.