Creates an instance of the XmlTextWriter class using the specified stream.
[Visual Basic] Overloads Public Sub New( _ ByVal w As Stream, _ ByVal encoding As Encoding _ ) [C#] public XmlTextWriter( Stream w, Encoding encoding ); [C++] public: XmlTextWriter( Stream* w, Encoding* encoding ); [JScript] public function XmlTextWriter( w : Stream, encoding : Encoding );
Exception Type | Condition |
---|---|
ArgumentException | if encoding is not supported. |
XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace | XmlTextWriter Constructor Overload List