HttpStaticObjectsCollection.Deserialize(BinaryReader) 方法

定義

從使用 HttpStaticObjectsCollection 方法所撰寫的二進位檔,建立 Serialize(BinaryWriter) 物件。

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)

備註

重要

使用不信任的資料呼叫此方法,會造成安全性上的風險。 呼叫此方法時,請一律使用信任的資料。 如需詳細資訊,請參閱 驗證所有輸入

方法 Deserialize 可用來讀取儲存在 方法所建立 Serialize 儲存位置的物件內容 HttpStaticObjectsCollection 。 若要序列化 HttpStaticObjectsCollection ,請使用 Serialize 方法。

適用於