VCardContact.Load

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, VCardLoadOptions)

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

public static VCardContact Load(string filePath, VCardLoadOptions options)
ParameterTypeDescription
filePathStringSource file
optionsVCardLoadOptionsAdditional options when loading a VCardContact

Return Value

List of contacts

Exceptions

exceptioncondition
ArgumentExceptionThrows if filePath 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, VCardLoadOptions)

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

public static VCardContact Load(Stream stream, VCardLoadOptions options)
ParameterTypeDescription
streamStreamA stream to read from
optionsVCardLoadOptionsAdditional options when loading a VCardContact

Return Value

A read VCardContact

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support reading

See Also