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 方法。

適用於