Serializes the specified Object and writes the XML-document instance to a file using the specified Stream. DOES NOT close the underlying stream. Useful for copying objects. Caller is responsible to call out writer.Close() to close writer and underlying stream.
シンタックス
'宣言
Public Overloads Sub Serialize( _
ByVal As System.IO.Stream, _
ByVal As System.Object, _
ByVal As System.Reflection.MemberInfo, _
ByVal As System.Xml.Serialization.XmlSerializerNamespaces, _
ByRef As System.Xml.XmlTextWriter _
)
public void Serialize(
System.IO.Stream ,
System.object ,
System.Reflection.MemberInfo ,
System.Xml.Serialization.XmlSerializerNamespaces ,
out System.Xml.XmlTextWriter
)
パラメータ
- stream
- The Stream used to write the XML-document instance
- o
- The Object to serialize
- mi
- The FieldInfo or MemberInfo object context for the object to serialize
- namespaces
- The XmlSerializerNamespaces referenced by the object
- writer
- The XmlWriter object reference. Call writer.Close after working with stream/writer.
参照