TessaSerializerSerializeBsonAsync - метод |
Пространство имён:
Tessa.Platform.Json
Сборка:
Tessa (в Tessa.dll) Версия: 3.5.0.19
Синтаксис public Task SerializeBsonAsync(
Stream stream,
Object obj,
bool withLength = false,
bool fallbackSerialization = false,
bool useCompression = false,
MemoryStream bufferStream = null,
MemoryStream compressionBufferStream = null,
CancellationToken cancellationToken = default
)
Public Function SerializeBsonAsync (
stream As Stream,
obj As Object,
Optional withLength As Boolean = false,
Optional fallbackSerialization As Boolean = false,
Optional useCompression As Boolean = false,
Optional bufferStream As MemoryStream = Nothing,
Optional compressionBufferStream As MemoryStream = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task
public:
Task^ SerializeBsonAsync(
Stream^ stream,
Object^ obj,
bool withLength = false,
bool fallbackSerialization = false,
bool useCompression = false,
MemoryStream^ bufferStream = nullptr,
MemoryStream^ compressionBufferStream = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
member SerializeBsonAsync :
stream : Stream *
obj : Object *
?withLength : bool *
?fallbackSerialization : bool *
?useCompression : bool *
?bufferStream : MemoryStream *
?compressionBufferStream : MemoryStream *
?cancellationToken : CancellationToken
(* Defaults:
let _withLength = defaultArg withLength false
let _fallbackSerialization = defaultArg fallbackSerialization false
let _useCompression = defaultArg useCompression false
let _bufferStream = defaultArg bufferStream null
let _compressionBufferStream = defaultArg compressionBufferStream null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task
Параметры
- stream
- Тип: System.IOStream
- obj
- Тип: SystemObject
- withLength (Optional)
- Тип: SystemBoolean
- fallbackSerialization (Optional)
- Тип: SystemBoolean
- useCompression (Optional)
- Тип: SystemBoolean
- bufferStream (Optional)
- Тип: System.IOMemoryStream
- compressionBufferStream (Optional)
- Тип: System.IOMemoryStream
- cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
Возвращаемое значение
Тип:
TaskСм. также