Saves the state to a stream.
Call this method to save the state of the asynchronous DC operation to a stream.
Use DCXMLEncoding() function to get the default encoding and pass it as the Encoding parameter. You can also use another encoding object, if needed. DCXMLEncoding() is declared in SBDCXMLEnc unit/namespace and is called as SBDCXMLEnc.Unit.DCXMLEncoding() in .NET and as SBDCXMLEnc.DCXMLEncoding() in other editions.