VCardContact.Load

Load(Stream, CancellationToken)

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

public static VCardContact Load(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


Load(Stream, Encoding, CancellationToken)

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

public static VCardContact Load(Stream stream, Encoding encoding, CancellationToken token)
ParameterTypeDescription
streamStreamA stream to read from
encodingEncodingStream data encoding
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

See Also


Load(string, CancellationToken)

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

public static VCardContact Load(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


Load(string, Encoding, CancellationToken)

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

public static VCardContact Load(string filePath, Encoding encoding, CancellationToken token)
ParameterTypeDescription
filePathStringA file name to read from
encodingEncodingStream data encoding
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty

See Also


Load(string)

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

public static VCardContact Load(string filePath)
ParameterTypeDescription
filePathStringA file name to read from

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty

See Also


Load(string, Encoding)

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

public static VCardContact Load(string filePath, Encoding encoding)
ParameterTypeDescription
filePathStringA file name to read from
encodingEncodingFile encoding

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty

See Also


Load(Stream)

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

public static VCardContact Load(Stream stream)
ParameterTypeDescription
streamStreamA stream to read from

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

See Also


Load(Stream, Encoding)

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

public static VCardContact Load(Stream stream, Encoding encoding)
ParameterTypeDescription
streamStreamA stream to read from
encodingEncodingStream data encoding

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

See Also