Writes out the DOCTYPE declaration with the specified name and optional attributes.
[Visual Basic] Overrides Public Sub WriteDocType( _ ByVal name As String, _ ByVal pubid As String, _ ByVal sysid As String, _ ByVal subset As String _ ) [C#] public override void WriteDocType( string name, string pubid, string sysid, string subset ); [C++] public: override void WriteDocType( String* name, String* pubid, String* sysid, String* subset ); [JScript] public override function WriteDocType( name : String, pubid : String, sysid : String, subset : String );
Exception Type | Condition |
---|---|
InvalidOperationException | This method was called outside the prolog (after the root element). |
XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace