Click or drag to resize

DefaultSerializerSerializeAsync Method

Serializes the specified object onto a stream.

Namespace:  Couchbase.Core.IO.Serializers
Assembly:  Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntax
C#
public ValueTask SerializeAsync(
	Stream stream,
	Object obj,
	CancellationToken cancellationToken = null
)

Parameters

stream
Type: System.IOStream
The stream to receive the serialized object.
obj
Type: SystemObject
The object to serialize.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
Cancellation token.

Return Value

Type: ValueTask

[Missing <returns> documentation for "M:Couchbase.Core.IO.Serializers.DefaultSerializer.SerializeAsync(System.IO.Stream,System.Object,System.Threading.CancellationToken)"]

Implements

ITypeSerializerSerializeAsync(Stream, Object, CancellationToken)
See Also