Export (0) Print
Expand All

XmlReader.IsName Method

Gets a value indicating whether the string argument is a valid XML name.

[Visual Basic]
Public Shared Function IsName( _
   ByVal str As String _
) As Boolean
[C#]
public static bool IsName(
 string str
);
[C++]
public: static bool IsName(
 String* str
);
[JScript]
public static function IsName(
   str : String
) : Boolean;

Parameters

str
The name to validate.

Return Value

true if the name is valid; otherwise, false.

Remarks

This method uses the W3C XML 1.0 Recommendation (http://www.w3.org/TR/2000/REC-xml-20001006#NT-Name) to determine whether the name is valid.

Requirements

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

XmlReader Class | XmlReader Members | System.Xml Namespace

Show:
© 2014 Microsoft