Load

VCardContact.Load method (1 of 8)

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)
Parameter Type Description
stream Stream A stream to read from
token CancellationToken Propagates notification that operations should be canceled.

Return Value

A read VCardContact

Exceptions

exception condition
ArgumentNullException stream is null
NotSupportedException stream does not support reading

See Also


VCardContact.Load method (2 of 8)

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)
Parameter Type Description
stream Stream A stream to read from
encoding Encoding Stream data encoding
token CancellationToken Propagates notification that operations should be canceled.

Return Value

A read VCardContact

Exceptions

exception condition
ArgumentNullException stream is null
NotSupportedException stream does not support reading

See Also


VCardContact.Load method (3 of 8)

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)
Parameter Type Description
filePath String A file name to read from
token CancellationToken Propagates notification that operations should be canceled.

Return Value

A read VCardContact

Exceptions

exception condition
ArgumentException filePath is null or empty

See Also


VCardContact.Load method (4 of 8)

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)
Parameter Type Description
filePath String A file name to read from
encoding Encoding Stream data encoding
token CancellationToken Propagates notification that operations should be canceled.

Return Value

A read VCardContact

Exceptions

exception condition
ArgumentException filePath is null or empty

See Also


VCardContact.Load method (5 of 8)

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

public static VCardContact Load(string filePath)
Parameter Type Description
filePath String A file name to read from

Return Value

A read VCardContact

Exceptions

exception condition
ArgumentException filePath is null or empty

See Also


VCardContact.Load method (6 of 8)

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)
Parameter Type Description
filePath String A file name to read from
encoding Encoding File encoding

Return Value

A read VCardContact

Exceptions

exception condition
ArgumentException filePath is null or empty

See Also


VCardContact.Load method (7 of 8)

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

public static VCardContact Load(Stream stream)
Parameter Type Description
stream Stream A stream to read from

Return Value

A read VCardContact

Exceptions

exception condition
ArgumentNullException stream is null
NotSupportedException stream does not support reading

See Also


VCardContact.Load method (8 of 8)

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)
Parameter Type Description
stream Stream A stream to read from
encoding Encoding Stream data encoding

Return Value

A read VCardContact

Exceptions

exception condition
ArgumentNullException stream is null
NotSupportedException stream does not support reading

See Also