Initializes a new instance of the Properties class. The property set is initialized from the provided argument vector.
Optional
args: string[]A command-line argument vector, possibly containing options to set properties. This method modifies the argument vector by removing any Ice-related options.
Optional
defaults: PropertiesDefault values for the property set. Settings in args override these defaults. May be null.
Retrieves a sequence of command-line options that is equivalent to this property set.
Each element of the returned sequence is a command-line option in the form --<key>=<value>
.
A sequence of command-line options representing this property set.
Get an Ice property by key. If the property is not set, its default value is returned.
The property key.
The property value.
PropertyException - Thrown if the property is not a known Ice property.
Get an Ice property as an integer. If the property is not set, its default value is returned.
The property key.
The property value interpreted as an integer.
PropertyException - Thrown if the property is not a known Ice property or the value is not a valid integer.
Retrieves an Ice property value as a list of strings. The strings must be separated by whitespace or commas. If the property is not set, an empty list is returned. The strings in the list can contain whitespace and commas if they are enclosed in single or double quotes. If quotes are mismatched, an empty list is returned. Within single or double quotes, the respective quote character can be escaped with a backslash. For example, O'Reilly can be written as O'Reilly, "O'Reilly", or 'O'Reilly'.
The property key.
The property value interpreted as a list of strings.
PropertyException - Thrown if the property is not a known Ice property.
Retrieves all properties whose keys begin with the specified prefix
. If prefix
is an empty string,
all properties are returned.
The prefix to search for, or an empty string to retrieve all properties.
A dictionary containing the matching properties.
Get a property as an integer. If the property is not set, 0 is returned.
The property key.
The property value interpreted as an integer.
PropertyException - Thrown if the property value is not a valid integer.
Get a property as an integer. If the property is not set, the given default value is returned.
The property key.
The default value to use if the property does not exist.
The property value interpreted as an integer, or the default value.
PropertyException - Thrown if the property value is not a valid integer.
Retrieves a property value as a list of strings. The strings must be separated by whitespace or commas. If the property is not set, an empty list is returned. The strings in the list can contain whitespace and commas if they are enclosed in single or double quotes. If quotes are mismatched, an empty list is returned. Within single or double quotes, the respective quote character can be escaped with a backslash. For example, O'Reilly can be written as O'Reilly, "O'Reilly", or 'O'Reilly'.
The property key.
The property value interpreted as a list of strings.
Retrieves a property value as a list of strings. The strings must be separated by whitespace or commas. If the property is not set, an empty list is returned. The strings in the list can contain whitespace and commas if they are enclosed in single or double quotes. If quotes are mismatched, an empty list is returned. Within single or double quotes, the respective quote character can be escaped with a backslash. For example, O'Reilly can be written as O'Reilly, "O'Reilly", or 'O'Reilly'.
The property key.
The default value to use if the property is not set.
The property value interpreted as a list of strings.
Loads properties from the contents of an Ice configuration file.
The contents of the configuration file as a string.
Converts a sequence of command-line options into properties. All options that begin with --<prefix>.
are converted into properties. If the prefix is empty, all options that begin with --
are converted
to properties.
The property prefix, or an empty string to convert all options starting with --
.
The command-line options to be converted.
The command-line options that do not start with the specified prefix, in their original order.
Converts a sequence of command-line options into properties. All options that begin with one of the
following prefixes are converted into properties: --Ice
, --IceBox
, --IceGrid
, --IceSSL
,
--IceStorm
, and --Glacier2
.
The command-line options to be converted.
The command-line options that do not start with one of the listed prefixes, in their original order.
A property set used to configure Ice applications. Properties are key/value pairs, with both keys and values being strings.