JsonObject.Save Method (Stream)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Serializes a JSON CLR object into text-based JSON.

Namespace:  System.Json
Assembly:  System.Json (in System.Json.dll)

Syntax

'Declaration
Public Overrides Sub Save ( _
    stream As Stream _
)
public override void Save(
    Stream stream
)

Parameters

  • stream
    Type: System.IO.Stream
    The stream to which the text-based JSON is written.

Exceptions

Exception Condition
ArgumentNullException

stream is nulla null reference (Nothing in Visual Basic).

Remarks

This saves the CLR object to text-based JSON by writing the text to the stream specified.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.