Deserialize

FoundDocument.Deserialize method

Deserializes an instance from a byte array.

public static FoundDocument 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 found document gives Highlight the path of the indexed document whose text is highlighted, so an application that gets found documents from its users must check that a user may read the document.

See Also