MapiContact.FromVCardAsync
Contents
[
Hide
]FromVCardAsync(string, CancellationToken)
Reads MapiContact from the specified vCard file asynchronously. The supported vCard versions are 2.1 and 3.0
public static Task<MapiContact> FromVCardAsync(string filePath, CancellationToken token = default)
| Parameter | Type | Description |
|---|---|---|
| filePath | String | A file name to read from |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
A read MapiContact
Exceptions
| exception | condition |
|---|---|
| ArgumentException | filePath is null or empty |
See Also
- class MapiContact
- namespace Aspose.Email.Mapi
- assembly Aspose.Email
FromVCardAsync(string, VCardLoadOptions, CancellationToken)
Reads MapiContact from the specified vCard file asynchronously. The supported vCard versions are 2.1 and 3.0
public static Task<MapiContact> FromVCardAsync(string filePath, VCardLoadOptions options,
CancellationToken token = default)
| Parameter | Type | Description |
|---|---|---|
| filePath | String | A file name to read from |
| options | VCardLoadOptions | Additional options when loading a VCardContact |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
A read MapiContact
Exceptions
| exception | condition |
|---|---|
| ArgumentException | filePath is null or empty |
See Also
- class VCardLoadOptions
- class MapiContact
- namespace Aspose.Email.Mapi
- assembly Aspose.Email
FromVCardAsync(Stream, CancellationToken)
Reads MapiContact from the specified stream containing vCard asynchronously. The supported vCard versions are 2.1 and 3.0
public static Task<MapiContact> FromVCardAsync(Stream stream, CancellationToken token = default)
| Parameter | Type | Description |
|---|---|---|
| stream | Stream | A stream to read from |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
A read MapiContact
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | stream is null |
| NotSupportedException | stream does not support reading |
See Also
- class MapiContact
- namespace Aspose.Email.Mapi
- assembly Aspose.Email
FromVCardAsync(Stream, VCardLoadOptions, CancellationToken)
Reads MapiContact from the specified stream containing vCard asynchronously. The supported vCard versions are 2.1 and 3.0
public static Task<MapiContact> FromVCardAsync(Stream stream, VCardLoadOptions options,
CancellationToken token = default)
| Parameter | Type | Description |
|---|---|---|
| stream | Stream | A stream to read from |
| options | VCardLoadOptions | Additional options when loading a VCardContact |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
A read MapiContact
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | stream is null |
| NotSupportedException | stream does not support reading |
See Also
- class VCardLoadOptions
- class MapiContact
- namespace Aspose.Email.Mapi
- assembly Aspose.Email