System.Xml.XmlConvert.VerifyTOKEN C# (CSharp) Méthode

VerifyTOKEN() public static méthode

public static VerifyTOKEN ( string token ) : string
token string
Résultat string
        public static string VerifyTOKEN(string token)
        {
            if (token == null || token.Length == 0)
            {
                return token;
            }
            if (token[0] == ' ' || token[token.Length - 1] == ' ' || token.IndexOfAny(crt) != -1 || token.IndexOf("  ", StringComparison.Ordinal) != -1)
            {
                throw new XmlException(SR.Sch_NotTokenString, token);
            }
            return token;
        }