Save(string)
Saves the distribution list to a file in MSG format.
public void Save(string fileName)
| Parameter | Type | Description |
|---|
| fileName | String | The 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)
| Parameter | Type | Description |
|---|
| fileName | String | The path of the file to write. |
| options | MapiDistributionListSaveOptions | The options; SaveFormat selects MSG or vCard. In vCard format every member is written as a separate vCard. |
Exceptions
| exception | condition |
|---|
| InvalidOperationException | The format is vCard and the list has no members. |
| NotSupportedException | The 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)
| Parameter | Type | Description |
|---|
| stream | Stream | The 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)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream to write to. |
| options | MapiDistributionListSaveOptions | The options; SaveFormat selects MSG or vCard. In vCard format every member is written as a separate vCard. |
Exceptions
| exception | condition |
|---|
| InvalidOperationException | The format is vCard and the list has no members. |
| NotSupportedException | The format is WebDAV, which a distribution list cannot be saved to. |
See Also