XmlReader.IsNameToken(String) Metodo

Definizione

Restituisce un valore che indica se l'argomento stringa è un token di nome XML valido.

public:
 static bool IsNameToken(System::String ^ str);
public static bool IsNameToken(string str);
static member IsNameToken : string -> bool
Public Shared Function IsNameToken (str As String) As Boolean

Parametri

str
String

Token del nome da convalidare.

Valori restituiti

true se è un token di nome valido; in caso contrario false, .

Eccezioni

Il valore str è null.

Commenti

Questo metodo usa la raccomandazione W3C XML 1.0 per determinare se il token del nome è valido.

Si applica a