FromVCard

MapiContact.FromVCard method (1 of 4)

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

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

Return Value

A read MapiContact

Exceptions

exception condition
ArgumentException filePath is null or empty

See Also


MapiContact.FromVCard method (2 of 4)

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

public static MapiContact FromVCard(string filePath, Encoding encoding)
Parameter Type Description
filePath String A file name to read from
encoding Encoding File data encoding

Return Value

A read MapiContact

Exceptions

exception condition
ArgumentException filePath is null or empty

See Also


MapiContact.FromVCard method (3 of 4)

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

public static MapiContact FromVCard(Stream stream)
Parameter Type Description
stream Stream A stream to read from

Return Value

A read MapiContact

Exceptions

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

See Also


MapiContact.FromVCard method (4 of 4)

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

public static MapiContact FromVCard(Stream stream, Encoding encoding)
Parameter Type Description
stream Stream A stream to read from
encoding Encoding Stream data encoding

Return Value

A read MapiContact

Exceptions

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

See Also