IStateSerializer<T>.Write Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Write(T, BinaryWriter) |
Serializes a value and writes it to the given BinaryWriter. |
Write(T, T, BinaryWriter) |
Serializes an object and writes it to the given BinaryWriter. |
Write(T, BinaryWriter)
Serializes a value and writes it to the given BinaryWriter.
public void Write (T value, System.IO.BinaryWriter binaryWriter);
abstract member Write : 'T * System.IO.BinaryWriter -> unit
Public Sub Write (value As T, binaryWriter As BinaryWriter)
Parameters
- value
- T
The value to serialize.
- binaryWriter
- BinaryWriter
The BinaryWriter to serialize to.
Remarks
When accessing the BinaryWriter base stream, care must be taken when moving the position in the stream. Writing must begin at the current stream position and end at the current position plus the length of your data.
Applies to
Write(T, T, BinaryWriter)
Serializes an object and writes it to the given BinaryWriter.
public void Write (T baseValue, T targetValue, System.IO.BinaryWriter binaryWriter);
abstract member Write : 'T * 'T * System.IO.BinaryWriter -> unit
Public Sub Write (baseValue As T, targetValue As T, binaryWriter As BinaryWriter)
Parameters
- baseValue
- T
The base value for the serialization.
- targetValue
- T
The value to serialize.
- binaryWriter
- BinaryWriter
The BinaryWriter to serialize to.
Remarks
When accessing the BinaryWriter base stream, care must be taken when moving the position in the stream. Writing must begin at the current stream position and end at the current position plus the length of your data.
Applies to
Azure SDK for .NET