다음을 통해 공유


JsonPrimitive.Save Method (Stream)

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

Serializes the JsonPrimitive 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).

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.