SerializerTBeginSerialize Method (IEnumerableT, String, Encoding, AsyncCallback, Object) |
Begins to serialize the objects to the specified file using the specified encoding.
Namespace:
Enkoni.Framework.Serialization
Assembly:
Enkoni.Framework.Serialization (in Enkoni.Framework.Serialization.dll) Version: 1.3.0.1
Syntaxpublic IAsyncResult BeginSerialize(
IEnumerable<T> objects,
string filePath,
Encoding encoding,
AsyncCallback callback,
Object state
)
Public Function BeginSerialize (
objects As IEnumerable(Of T),
filePath As String,
encoding As Encoding,
callback As AsyncCallback,
state As Object
) As IAsyncResult
public:
IAsyncResult^ BeginSerialize(
IEnumerable<T>^ objects,
String^ filePath,
Encoding^ encoding,
AsyncCallback^ callback,
Object^ state
)
member BeginSerialize :
objects : IEnumerable<'T> *
filePath : string *
encoding : Encoding *
callback : AsyncCallback *
state : Object -> IAsyncResult
Parameters
- objects
- Type: System.Collections.GenericIEnumerableT
The collection of objects that must be serialized. - filePath
- Type: SystemString
The name of the output file. - encoding
- Type: System.TextEncoding
The encoding that must be used to serialize the data. - callback
- Type: SystemAsyncCallback
The method to be called when the asynchronous operation is completed. - state
- Type: SystemObject
A user-provided object that distinguishes this particular asynchronous request from other requests.
Return Value
Type:
IAsyncResultAn
IAsyncResult that references the asynchronous operation.
See Also