Deserialize

DocumentInfo.Deserialize method

Deserializes an instance from a byte array.

public static DocumentInfo Deserialize(byte[] array)
Parameter Type Description
array Byte[] A byte array to deserialize from.

Return Value

An instance deserialized from a byte array.

Exceptions

exception condition
InvalidDataException The data is damaged.
InvalidOperationException The data ends before the instance is read.

Remarks

The data must be the data of the Serialize method and come from a trusted source: it is checked for consistency, not for its origin. A document info gives GetDocumentText the path of the indexed document whose text is generated, so an application that gets document infos from its users must check that a user may read the document.

See Also