MapiDistributionList.Save

Save(string)

Saves the distribution list to a file in MSG format.

public void Save(string fileName)
ParameterTypeDescription
fileNameStringThe path of the file to write.

See Also


Save(string, MapiDistributionListSaveOptions)

Saves the distribution list to a file with the specified options.

public void Save(string fileName, MapiDistributionListSaveOptions options)
ParameterTypeDescription
fileNameStringThe path of the file to write.
optionsMapiDistributionListSaveOptionsThe options; SaveFormat selects MSG or vCard. In vCard format every member is written as a separate vCard.

Exceptions

exceptioncondition
InvalidOperationExceptionThe format is vCard and the list has no members.
NotSupportedExceptionThe format is WebDAV, which a distribution list cannot be saved to.

See Also


Save(Stream)

Saves the distribution list to a stream in MSG format.

public void Save(Stream stream)
ParameterTypeDescription
streamStreamThe stream to write to.

See Also


Save(Stream, MapiDistributionListSaveOptions)

Saves the distribution list to a stream with the specified options.

public void Save(Stream stream, MapiDistributionListSaveOptions options)
ParameterTypeDescription
streamStreamThe stream to write to.
optionsMapiDistributionListSaveOptionsThe options; SaveFormat selects MSG or vCard. In vCard format every member is written as a separate vCard.

Exceptions

exceptioncondition
InvalidOperationExceptionThe format is vCard and the list has no members.
NotSupportedExceptionThe format is WebDAV, which a distribution list cannot be saved to.

See Also