System.Xml.ValidateNames.ValidateNameThrow C# (CSharp) Méthode

ValidateNameThrow() static private méthode

Throw if the specified name parts are not valid according to the rules of "nodeKind". Check only rules that are specified by the Flags. NOTE: Namespaces should be passed using a prefix, ns pair. "localName" is always string.Empty.
static private ValidateNameThrow ( string prefix, string localName, string ns, XPathNodeType nodeKind, Flags flags ) : void
prefix string
localName string
ns string
nodeKind XPathNodeType
flags System.Flags
Résultat void
        internal static void ValidateNameThrow(string prefix, string localName, string ns, XPathNodeType nodeKind, Flags flags)
        {
            // throwOnError = true
            ValidateNameInternal(prefix, localName, ns, nodeKind, flags, true);
        }