HttpStaticObjectsCollection.Deserialize(BinaryReader) 方法

定义

从使用Serialize(BinaryWriter)该方法编写的二进制文件创建对象HttpStaticObjectsCollection

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

BinaryReader用于从流或编码字符串读取序列化的集合。

返回

HttpStaticObjectsCollection使用该方法Serialize(BinaryWriter)编写的二进制文件中的内容进行填充。

注解

Important

使用不受信任的数据调用此方法是一种安全风险。 仅使用受信任的数据调用此方法。 有关详细信息,请参阅验证所有输入

该方法Deserialize用于读取存储在该方法创建的Serialize存储位置的对象的内容HttpStaticObjectsCollection。 若要序列化, HttpStaticObjectsCollection请使用 Serialize 该方法。

适用于