Streamable.ToBinaryStream 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
ToBinaryStream<TKey,TPayload>(IStreamable<TKey,TPayload>, Stream, Boolean) |
Serialize streamable into a binary stream |
ToBinaryStream<TKey,TPayload>(IStreamable<TKey,TPayload>, String) |
Serialize streamble into a binary file |
ToBinaryStream<TKey,TPayload>(IStreamable<TKey,TPayload>, Stream, Boolean)
Serialize streamable into a binary stream
public static void ToBinaryStream<TKey,TPayload> (this Microsoft.StreamProcessing.IStreamable<TKey,TPayload> input, System.IO.Stream binaryStream, bool writePropertiesToStream = false);
static member ToBinaryStream : Microsoft.StreamProcessing.IStreamable<'Key, 'Payload> * System.IO.Stream * bool -> unit
<Extension()>
Public Sub ToBinaryStream(Of TKey, TPayload) (input As IStreamable(Of TKey, TPayload), binaryStream As Stream, Optional writePropertiesToStream As Boolean = false)
Type Parameters
- TKey
- TPayload
Parameters
- binaryStream
- Stream
- writePropertiesToStream
- Boolean
Applies to
ToBinaryStream<TKey,TPayload>(IStreamable<TKey,TPayload>, String)
Serialize streamble into a binary file
public static void ToBinaryStream<TKey,TPayload> (this Microsoft.StreamProcessing.IStreamable<TKey,TPayload> input, string fileName);
static member ToBinaryStream : Microsoft.StreamProcessing.IStreamable<'Key, 'Payload> * string -> unit
<Extension()>
Public Sub ToBinaryStream(Of TKey, TPayload) (input As IStreamable(Of TKey, TPayload), fileName As String)
Type Parameters
- TKey
- TPayload
Parameters
- fileName
- String