NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlContext.CreateDocType

Creates an XmlDocType instance in this context.

[Visual Basic]
Public Function CreateDocType( _
   ByVal docType As String _
) As XmlDocType
[C#]
public XmlDocType CreateDocType(
   string docType
);
[C++]
public: XmlDocType* CreateDocType(
   String* docType
);
[JScript]
public function CreateDocType(
   docType : String
) : XmlDocType;

Parameters

docType
The text of the document type declaration.

Return Value

An XmlDocType instance with the given text.

Exceptions

Exception Type Condition
ArgumentException If text is null, if text does not start with the character sequence "<!DOCTYPE", or if text does not end with the character ">".

Remarks

An exception is thrown if text does not start with the the character sequence "<!DOCTYPE" or end with the character ">".

See Also

XmlContext Class | XmlContext Members | System.Xml Namespace