Click or drag to resize

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
Syntax
public IAsyncResult BeginSerialize(
	IEnumerable<T> objects,
	string filePath,
	Encoding encoding,
	AsyncCallback callback,
	Object state
)

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: IAsyncResult
An IAsyncResult that references the asynchronous operation.
See Also