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
name
stringThe name of the DOCTYPE. This must be non-empty.
pubid
stringIf non-null it also writes PUBLIC "pubid" "sysid" where
pubid
andsysid
are replaced with the value of the given arguments.sysid
stringIf
pubid
is null andsysid
is non-null it writes SYSTEM "sysid" wheresysid
is replaced with the value of this argument.subset
stringIf 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
name
would 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.”