ToXML Method
      
 

Description

Exports VCard object to an XML String.


Return Type

A String value.  


Syntax

object.ToXML (WithPhoto)



The ToXML Method syntax has these parts:

Part Description
object An expression evaluating to an object of type XMPPVCard.
WithPhoto Required. A Boolean value. This parameter is used to specify wether you wish to export Photo along with VCard, or not. If set to True, Photo will be exported. If set to False, Photo will not be included into XML string.

Remarks

The ToXML Method will export whole VCard object to an XML string. This value can later be used for loading using the opposite, FromXML , method.

The method takes one parameter, WithPhoto, which defines whether the Photo will be exported along with VCard or not.