ImageGear .NET - Updated
ToJsonStream Method (TextDocument)




ImageGear24.Web.ImageDataProcessor Assembly > ImageGear.Web.TextSearch Namespace > TextDocument Class : ToJsonStream Method
(optional) The stream to which to write the serialized TextDocument. Will use a new MemoryStream if null or unspecified.
Serializes this TextDocument to a JSON MemoryStream
Syntax
'Declaration
 
Public Function ToJsonStream( _
   Optional ByVal stream As Stream _
) As Stream
'Usage
 
Dim instance As TextDocument
Dim stream As Stream
Dim value As Stream
 
value = instance.ToJsonStream(stream)
public Stream ToJsonStream( 
   Stream stream
)
public: Stream* ToJsonStream( 
   Stream* stream
) 
public:
Stream^ ToJsonStream( 
   Stream^ stream
) 

Parameters

stream
(optional) The stream to which to write the serialized TextDocument. Will use a new MemoryStream if null or unspecified.

Return Value

The provided stream or newly created MemoryStream containing a JSON representation of the TextDocument.
Exceptions
ExceptionDescription
Possibly by Serializer on invalid data, invalid data contract, or quota exceeded
See Also

Reference

TextDocument Class
TextDocument Members