Load

Load(string)

Loads a search network configuration from a file.

public static Configuration Load(string filePath)
Parameter Type Description
filePath String The file to load from.

Return Value

The configuration.

Exceptions

exception condition
XmlException The XML of the configuration is not well formed, or it has a document type definition.

Remarks

A configuration with a document type definition (DTD) is refused, and nothing outside the file is read.

See Also


Load(Stream)

Loads a search network configuration from a stream.

public static Configuration Load(Stream stream)
Parameter Type Description
stream Stream The stream to load from.

Return Value

The configuration.

Exceptions

exception condition
XmlException The XML of the configuration is not well formed, or it has a document type definition.

Remarks

A configuration with a document type definition (DTD) is refused, and nothing outside the stream is read.

See Also