VCardContact.LoadAsync

LoadAsync(Stream, CancellationToken)

Reads VCardContact from the specified stream containing vCard. The supported vCard versions are 2.1 and 3.0

public static Task<VCardContact> LoadAsync(Stream stream, CancellationToken token)
ParameterTypeDescription
streamStreamA stream to read from
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

See Also


LoadAsync(string, CancellationToken)

Reads VCardContact from the specified vCard file The supported vCard versions are 2.1 and 3.0

public static Task<VCardContact> LoadAsync(string filePath, CancellationToken token)
ParameterTypeDescription
filePathStringA file name to read from
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty

See Also


LoadAsync(Stream, VCardLoadOptions, CancellationToken)

Reads VCardContact from the specified stream containing vCard. The supported vCard versions are 2.1 and 3.0

public static Task<VCardContact> LoadAsync(Stream stream, VCardLoadOptions options, 
    CancellationToken token)
ParameterTypeDescription
streamStreamA stream to read from
optionsVCardLoadOptionsAdditional options when loading a VCardContact list
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

See Also


LoadAsync(string, VCardLoadOptions, CancellationToken)

Reads VCardContact from the specified vCard file The supported vCard versions are 2.1 and 3.0

public static Task<VCardContact> LoadAsync(string filePath, VCardLoadOptions options, 
    CancellationToken token)
ParameterTypeDescription
filePathStringA file name to read from
tokenVCardLoadOptionsPropagates notification that operations should be canceled.
optionsCancellationTokenAdditional options when loading a VCardContact list

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty

See Also