Table of Contents

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 string

The name of the DOCTYPE. This must be non-empty.

pubid string

If non-null it also writes PUBLIC "pubid" "sysid" where pubid and sysid are replaced with the value of the given arguments.

sysid string

If pubid is null and sysid is non-null it writes SYSTEM "sysid" where sysid is replaced with the value of this argument.

subset string

If 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.”