Save(string)
Saves the contact to a vCard 2.1 file.
public void Save(string filePath)
| Parameter | Type | Description |
|---|
| filePath | String | The path of the file to write. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
See Also
Save(string, ContactSaveFormat)
Saves the contact to a file in the specified format with the default options.
public void Save(string filePath, ContactSaveFormat saveFormat)
| Parameter | Type | Description |
|---|
| filePath | String | The path of the file to write. |
| saveFormat | ContactSaveFormat | The format: vCard (the default), WebDAV or MSG. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
| NotSupportedException | saveFormat is not supported. |
See Also
Save(string, ContactSaveOptions)
Saves the contact to a file with the specified options.
public void Save(string filePath, ContactSaveOptions saveOptions)
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
| ArgumentNullException | saveOptions is null. |
| NotSupportedException | The vCard version in saveOptions is not supported. |
See Also
Save(Stream)
Saves the contact to a stream in vCard 2.1 format.
public void Save(Stream stream)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream to write to. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| NotSupportedException | stream does not support writing. |
See Also
Save(Stream, ContactSaveFormat)
Saves the contact to a stream in the specified format with the default options.
public void Save(Stream stream, ContactSaveFormat saveFormat)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream to write to. |
| saveFormat | ContactSaveFormat | The format: vCard (the default), WebDAV or MSG. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| NotSupportedException | stream does not support writing. |
| NotSupportedException | saveFormat is not supported. |
See Also
Save(Stream, ContactSaveOptions)
Saves the contact to a stream with the specified options.
public void Save(Stream stream, ContactSaveOptions saveOptions)
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream or saveOptions is null. |
| NotSupportedException | stream does not support writing. |
| ArgumentException | The format of saveOptions does not match its class. |
| NotSupportedException | The vCard version in saveOptions is not supported. |
See Also