Parses a map of key/value pairs into valid ConfigurationParameter keys and Object values. The resulting configuration values are used to populate this ConfigurationParameters class.

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.


Namespace: FileNet.Api.Util
Assembly: FileNet.Api (in filenet.api.dll)

Syntax

Visual Basic (Declaration)
Public Sub LoadMap( _ 
   ByVal map As IDictionary _ 
)
C#
public void LoadMap(
   IDictionary map
)
C++
public:
 void LoadMap(
   IDictionary map
) sealed 
J#
public void LoadMap(
   IDictionary map
)
JScript
public  function LoadMap(
   map : IDictionary
)

Parameters

map
An IDictionary map object containing configuration key/value pairs. Cannot be Null.

See Also