MapiContact.FromVCard

FromVCard(string)

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

public static MapiContact FromVCard(string filePath)
ParameterTypeDescription
filePathStringA file name to read from

Return Value

A read MapiContact

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty

See Also


FromVCard(string, Encoding)

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)
ParameterTypeDescription
filePathStringA file name to read from
encodingEncodingFile data encoding

Return Value

A read MapiContact

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty

See Also


FromVCard(Stream)

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

public static MapiContact FromVCard(Stream stream)
ParameterTypeDescription
streamStreamA stream to read from

Return Value

A read MapiContact

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

See Also


FromVCard(Stream, Encoding)

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)
ParameterTypeDescription
streamStreamA stream to read from
encodingEncodingStream data encoding

Return Value

A read MapiContact

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

See Also