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

用于将序列化的集合写入流或编码的字符串的 BinaryWriterThe 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.

适用于