Writes out the DOCTYPE declaration with the specified name and optional attributes.
[Visual Basic] MustOverride Public Sub WriteDocType( _ ByVal name As String, _ ByVal pubid As String, _ ByVal sysid As String, _ ByVal subset As String _ ) [C#] public abstract void WriteDocType( string name, string pubid, string sysid, string subset ); [C++] public: virtual void WriteDocType( String* name, String* pubid, String* sysid, String* subset ) = 0; [JScript] public abstract 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). |
XmlWriter Class | XmlWriter Members | System.NewXml Namespace