Compartilhar via


NewtonsoftJsonObjectSerializer.Serialize Método

Definição

Converta o valor fornecido em sua representação binária e escreva-o em Stream.

public override void Serialize (System.IO.Stream stream, object? value, Type inputType, System.Threading.CancellationToken cancellationToken);
override this.Serialize : System.IO.Stream * obj * Type * System.Threading.CancellationToken -> unit
Public Overrides Sub Serialize (stream As Stream, value As Object, inputType As Type, cancellationToken As CancellationToken)

Parâmetros

stream
Stream

O Stream no qual ocorrerá a gravação.

value
Object

O valor a ser convertido.

inputType
Type

O tipo do value a ser convertido.

cancellationToken
CancellationToken

O CancellationToken a ser usado durante a serialização.

Exceções

stream ou inputType é nulo.

Aplica-se a