This documentation is archived and is not being maintained.

XmlWriter.WriteNmToken Method

When overridden in a derived class, writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0 recommendation (

[Visual Basic]
Public MustOverride Sub WriteNmToken( _
   ByVal name As String _
public abstract void WriteNmToken(
 string name
public: virtual void WriteNmToken(
 String* name
) = 0;
public abstract function WriteNmToken(
   name : String


The name to write.


Exception Type Condition
ArgumentException name is not a valid NmToken; or name is either a null reference (Nothing in Visual Basic) or String.Empty.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlWriter Class | XmlWriter Members | System.Xml Namespace