HttpStaticObjectsCollection.Deserialize(BinaryReader) 方法

定义

从使用 HttpStaticObjectsCollection 方法编写的二进制文件创建 Serialize(BinaryWriter) 对象。Creates an HttpStaticObjectsCollection object from a binary file that was written by using the Serialize(BinaryWriter) method.

public:
 static System::Web::HttpStaticObjectsCollection ^ Deserialize(System::IO::BinaryReader ^ reader);
public static System.Web.HttpStaticObjectsCollection Deserialize (System.IO.BinaryReader reader);
static member Deserialize : System.IO.BinaryReader -> System.Web.HttpStaticObjectsCollection
Public Shared Function Deserialize (reader As BinaryReader) As HttpStaticObjectsCollection

参数

reader
BinaryReader

用于从流或编码的字符串读取序列化的集合的 BinaryReaderThe BinaryReader used to read the serialized collection from a stream or encoded string.

返回

HttpStaticObjectsCollection

使用一个二进制文件中的内容填充的 HttpStaticObjectsCollection,该二进制文件是使用 Serialize(BinaryWriter) 方法编写的。An HttpStaticObjectsCollection populated with the contents from a binary file written using the Serialize(BinaryWriter) method.

注解

重要

使用不受信任的数据调用此方法存在安全风险。Calling this method with untrusted data is a security risk. 仅使用受信任的数据调用此方法。Call this method only with trusted data. 有关详细信息,请参阅数据验证For more information, see Data Validation.

Deserialize方法用于读取 HttpStaticObjectsCollection 存储在由方法创建的存储位置中的对象的内容 SerializeThe 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. 若要序列化 HttpStaticObjectsCollection ,请使用 Serialize 方法。To serialize an HttpStaticObjectsCollection, use the Serialize method.

适用于