HttpStaticObjectsCollection.Deserialize(BinaryReader) Method

Definition

Creates an HttpStaticObjectsCollection object from a binary file that was written by using the Serialize(BinaryWriter) method.

C#
public static System.Web.HttpStaticObjectsCollection Deserialize(System.IO.BinaryReader reader);

Parameters

reader
BinaryReader

The BinaryReader used to read the serialized collection from a stream or encoded string.

Returns

An HttpStaticObjectsCollection populated with the contents from a binary file written using the Serialize(BinaryWriter) method.

Remarks

Important

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Validate All Inputs.

The Deserialize method is used to read the contents of a HttpStaticObjectsCollection object that is stored in a storage location that is created by the Serialize method. To serialize an HttpStaticObjectsCollection, use the Serialize method.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1