SaveAsync(string, CancellationToken)
Saves this MapiContact to the vCard file with a default options asynchronously. The supported vCard version is 2.1
public Task SaveAsync(string filePath, CancellationToken token = default)
| Parameter | Type | Description |
|---|
| filePath | String | A vCard file name |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty |
See Also
SaveAsync(string, ContactSaveFormat, CancellationToken)
Saves this MapiContact to the specified file with a format using the default options asynchronously. The supported save format is vCard.
public Task SaveAsync(string filePath, ContactSaveFormat saveFormat,
CancellationToken token = default)
| Parameter | Type | Description |
|---|
| filePath | String | A vCard file name |
| saveFormat | ContactSaveFormat | A save format |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty |
| NotSupportedException | the specified format is not supported |
See Also
SaveAsync(string, ContactSaveOptions, CancellationToken)
Saves this MapiContact into file using specified save options asynchronously. The supported save options is VCardSaveOptions
public Task SaveAsync(string filePath, ContactSaveOptions saveOptions,
CancellationToken token = default)
| Parameter | Type | Description |
|---|
| filePath | String | A vCard file name |
| saveOptions | ContactSaveOptions | A save options |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty |
| ArgumentNullException | saveOptions is null |
| NotSupportedException | some save option is not supported |
See Also
SaveAsync(Stream, ContactSaveFormat, CancellationToken)
Saves this MapiContact into the given stream with vCard format asynchronously. The supported vCard version is 2.1
public Task SaveAsync(Stream stream, ContactSaveFormat saveFormat,
CancellationToken token = default)
| Parameter | Description |
|---|
| stream | A stream to save to |
| token | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null |
| NotSupportedException | stream does not support writing |
See Also
SaveAsync(Stream, ContactSaveOptions, CancellationToken)
Saves this MapiContact to the given stream using specified save options asynchronously. The supported save options is VCardSaveOptions
public Task SaveAsync(Stream stream, ContactSaveOptions saveOptions,
CancellationToken token = default)
| Parameter | Type | Description |
|---|
| stream | Stream | A stream to save to |
| saveOptions | ContactSaveOptions | A save options |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream or saveOptions is null |
| NotSupportedException | stream does not support writing |
| ArgumentException | incorrect saveOptions |
| NotSupportedException | some save option is not supported |
See Also
SaveAsync(Stream, CancellationToken)
Saves this MapiContact to the given stream asynchronously. The supported save format is vCard.
public Task SaveAsync(Stream stream, CancellationToken token = default)
| Parameter | Type | Description |
|---|
| stream | Stream | A stream to save to. |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| NotSupportedException | stream does not support writing. |
See Also