VCardContact.Save

Save(string)

Saves this MapiContact to the vCard file with a default options. The supported vCard version is 2.1

public void Save(string filePath)
ParameterTypeDescription
filePathStringA vCard file name

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty

See Also


Save(string, ContactSaveFormat)

Saves this MapiContact to the specified file with a format using the default options. The supported save format is vCard.

public void Save(string filePath, ContactSaveFormat saveFormat)
ParameterTypeDescription
filePathStringA vCard file name
saveFormatContactSaveFormatA save format

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty
NotSupportedExceptionthe specified format is not supported

See Also


Save(string, ContactSaveOptions)

Saves this MapiContact into file using specified save options. The supported save options is VCardSaveOptions

public void Save(string filePath, ContactSaveOptions saveOptions)
ParameterTypeDescription
filePathStringA vCard file name
saveOptionsContactSaveOptionsA save options

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty
ArgumentNullExceptionsaveOptions is null
NotSupportedExceptionsome save option is not supported

See Also


Save(Stream)

Saves this MapiContact into the given stream with vCard format. The supported vCard version is 2.1

public void Save(Stream stream)
ParameterTypeDescription
streamStreamA stream to save to

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support writing

See Also


Save(Stream, ContactSaveFormat)

Saves this MapiContact to the given stream with a format using the default options. The supported save format is vCard

public void Save(Stream stream, ContactSaveFormat saveFormat)
ParameterTypeDescription
streamStreamA stream to save to
saveFormatContactSaveFormatA save format

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support writing
NotSupportedExceptionThe specified format is not supported

See Also


Save(Stream, ContactSaveOptions)

Saves this MapiContact to the given stream using specified save options. The supported save options is VCardSaveOptions

public void Save(Stream stream, ContactSaveOptions saveOptions)
ParameterTypeDescription
streamStreamA stream to save to
saveOptionsContactSaveOptionsA save options

Exceptions

exceptioncondition
ArgumentNullExceptionstream or saveOptions is null
NotSupportedExceptionstream does not support writing
ArgumentExceptionincorrect saveOptions
NotSupportedExceptionsome save option is not supported

See Also