Riferimento a .NET Framework
Metodo XmlReader.IsNameToken
Ottiene un valore che indica se l'argomento della stringa è un token di un nome XML valido o meno.
Spazio dei nomi: System.Xml
Assembly: System.Xml (in system.xml.dll)
Membri XmlReader
Spazio dei nomi System.Xml
Assembly: System.Xml (in system.xml.dll)
Sintassi
Visual Basic - (Dichiarazione)
Public Shared Function IsNameToken ( _ str As String _ ) As Boolean
Visual Basic (Utilizzo)
Dim str As String Dim returnValue As Boolean returnValue = XmlReader.IsNameToken(str)
C#
public static bool IsNameToken ( string str )
C++
public: static bool IsNameToken ( String^ str )
J#
public static boolean IsNameToken ( String str )
JScript
public static function IsNameToken ( str : String ) : boolean
Parametri
- str
-
Token del nome da convalidare.
Valore restituito
true se il token del nome è valido; in caso contrario, false.Note
Questo metodo utilizza la raccomandazione W3C XML 1.0, disponibile all'indirizzo http://www.w3.org/TR/2000/REC-xml-20001006#NT-Nmtoken, per determinare se il nome è valido.
Piattaforme
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile per Pocket PC, Windows Mobile per Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework non supporta tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema.
Informazioni sulla versione
.NET Framework
Supportato in: 2.0 1.1 1.0.NET Compact Framework
Supportato in: 2.0 1.0Vedere anche
Riferimenti
Classe XmlReaderMembri XmlReader
Spazio dei nomi System.Xml