HttpStaticObjectsCollection.Serialize(BinaryWriter) 方法
定义
将集合的内容写入 BinaryWriter 对象中。Writes the contents of the collection to a BinaryWriter object.
public:
void Serialize(System::IO::BinaryWriter ^ writer);
public void Serialize (System.IO.BinaryWriter writer);
member this.Serialize : System.IO.BinaryWriter -> unit
Public Sub Serialize (writer As BinaryWriter)
参数
- writer
- BinaryWriter
用于将序列化的集合写入流或编码的字符串的 BinaryWriter。The BinaryWriter used to write the serialized collection to a stream or encoded string.
注解
您可以使用 Serialize 方法将对象的内容写入 HttpStaticObjectsCollection BinaryWriter 对象中。You can use the Serialize method to write the contents of a HttpStaticObjectsCollection object to a BinaryWriter object. 若要检索序列化 HttpStaticObjectsCollection 对象,请使用 Deserialize 方法。To retrieve a serialized HttpStaticObjectsCollection object, use the Deserialize method.