A common usage of this method is to load a properties file into an IProperties object and call this method to parse the properties into valid configuration parameters.
Each key must be a ConfigurationParameter or a String. The key is used as-is if it is already a ConfigurationParameter; otherwise, the String is parsed for a valid ConfigurationParameter string value.
All string comparisons and lookups are case-insensitive.
If a String key does not start with "FileNet.", the key/value pair is logged at the debug level but otherwise skipped and ignored. The entire key is then used to look up the corresponding ConfigurationParameter constant; an exception is thrown if it is not found.
The value for a valid key is then parsed. If the value is already of the required type, it is used as-is; otherwise, it is transformed into one of the required types. The type of transformation depends on the parameter and type of value. An exception is thrown if the transformation fails. An exception is also thrown if the given or transformed value is invalid for the parameter.
Assembly: FileNet.Api (in FileNet.Api.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub LoadMap ( _ map As IDictionary _ ) |
C# |
---|
public void LoadMap( IDictionary map ) |
Visual C++ |
---|
public: void LoadMap( IDictionary^ map ) |
JavaScript |
---|
function loadMap(map); |
Parameters
- map
- Type: System.Collections..::.IDictionary
An IDictionary map object containing configuration key/value pairs. Cannot be Null.