Method WriteDocType
- Namespace
- Alternet.FormDesigner.Wpf.XamlDom
- Assembly
- Alternet.FormDesigner.Wpf.v10.dll
WriteDocType(string, string, string, string)
When overridden in a derived class, writes the DOCTYPE declaration with the specified name and optional attributes.
public override void WriteDocType(string name, string pubid, string sysid, string subset)
Parameters
namestringThe name of the DOCTYPE. This must be non-empty.
pubidstringIf non-null it also writes PUBLIC "pubid" "sysid" where
pubidandsysidare replaced with the value of the given arguments.sysidstringIf
pubidis null andsysidis non-null it writes SYSTEM "sysid" wheresysidis replaced with the value of this argument.subsetstringIf non-null it writes [subset] where subset is replaced with the value of this argument.
Exceptions
- InvalidOperationException
This method was called outside the prolog (after the root element).
- ArgumentException
The value for
namewould result in invalid XML.- InvalidOperationException
An XmlWriter method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.”