DataDirect XML Converters 5.0 Send comments on this topic.
Convert(Source,Result) Method
See Also 
DDTek.XmlConverter Namespace > Converter Interface > Convert Method : Convert(Source,Result) Method




source
is an instance of Source.

The following source classes are supported for conversion to XML.

In addition to the above, the following source classes are supported for conversion from XML.

result
is an instance of Result.

The following result classes are supported for conversion from XML.

In addition to the above, the following result classes are supported for conversion to XML.

Start the conversion and (possibly) wait for completion.

Syntax

Visual Basic (Declaration) 
Overloads Function Convert( _
   ByVal source As Source, _
   ByVal result As Result _
) As Conversion
Visual Basic (Usage)Copy Code
Dim instance As Converter
Dim source As Source
Dim result As Result
Dim value As Conversion
 
value = instance.Convert(source, result)
C# 
Conversion Convert( 
   Source source,
   Result result
)
Managed Extensions for C++ 
Conversion* Convert( 
   Source* source,
   Result* result
) 
C++/CLI 
Conversion^ Convert( 
   Source^ source,
   Result^ result
) 

Parameters

source
is an instance of Source.

The following source classes are supported for conversion to XML.

In addition to the above, the following source classes are supported for conversion from XML.

result
is an instance of Result.

The following result classes are supported for conversion from XML.

In addition to the above, the following result classes are supported for conversion to XML.

Return Value

The new Conversion object that represents the conversion. The application can ignore this return value if it desires, however the application can use the returned Conversion object to gain additional control over the conversion process.

Remarks

It is important to note that after this method returns, the conversion might not yet be complete, however it is safe to immediately call Convert again on the same Converter object.

If the application is pushing data into the Converter (using OutputStreamSource, TextWriterSource, or XmlWriterSource, then the conversion will not be finished until all data and the appropriate end-of-data indication have been delivered.

For additional restrictions on the permissable Source and Result objects, see ConverterArgumentException

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.