Visual Basic (Declaration) | |
---|---|
Overloads Function Convert( _ ByVal source As Source, _ ByVal result As Result _ ) As Conversion |
Visual Basic (Usage) | ![]() |
---|---|
|
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.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
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