MapiDistributionList.Load

Load(string)

Loads a MapiDistributionList from the specified file.

public static MapiDistributionList Load(string filePath)
ParameterTypeDescription
filePathStringThe path to the file to be loaded.

Return Value

Returns a MapiDistributionList instance loaded from the specified file.

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty.
FileNotFoundExceptionThe specified file does not exist.
InvalidOperationExceptionThe file does not contain a distribution list item.

See Also


Load(Stream)

Loads a MapiDistributionList from the specified stream.

public static MapiDistributionList Load(Stream stream)
ParameterTypeDescription
streamStreamThe stream to be loaded.

Return Value

Returns a MapiDistributionList instance loaded from the specified stream.

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null.
NotSupportedExceptionstream does not support reading.
InvalidOperationExceptionThe stream does not contain a distribution list item.

See Also