Mono.Xml.Schema.XsdWildcard.ValidateWildcardAllowsNamespaceName C# (CSharp) 메소드

ValidateWildcardAllowsNamespaceName() 공개 메소드

public ValidateWildcardAllowsNamespaceName ( string ns, ValidationEventHandler h, XmlSchema schema, bool raiseError ) : bool
ns string
h ValidationEventHandler
schema System.Xml.Schema.XmlSchema
raiseError bool
리턴 bool
		public bool ValidateWildcardAllowsNamespaceName (string ns,
			ValidationEventHandler h, XmlSchema schema, bool raiseError)
		{
			if (HasValueAny)
				return true;
			if (HasValueOther && ns != TargetNamespace)
				return true;
			if (HasValueTargetNamespace && ns == TargetNamespace)
				return true;
			if (HasValueLocal && ns == "")
				return true;
			for (int i = 0; i < ResolvedNamespaces.Count; i++)
				if (ns == ResolvedNamespaces [i])
					return true;
			if (raiseError)
				xsobj.error (h, "This wildcard does not allow the namespace: " + ns);
			return false;
		}