53 references to Restriction
System.Data.SqlXml (1)
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
55while (schemaType.DerivedBy == XmlSchemaDerivationMethod.Restriction)
System.Web.Services (3)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (3)
3081case global::System.Xml.Schema.XmlSchemaDerivationMethod.@Restriction: s = @"restriction"; break; 3094(long)global::System.Xml.Schema.XmlSchemaDerivationMethod.@Restriction, 8661h.Add(@"restriction", (long)global::System.Xml.Schema.XmlSchemaDerivationMethod.@Restriction);
System.Xml (49)
System\Xml\Schema\DataTypeImplementation.cs (1)
182derivedType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction);
System\Xml\Schema\Preprocessor.cs (7)
65const XmlSchemaDerivationMethod schemaBlockDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 66const XmlSchemaDerivationMethod schemaFinalDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 67const XmlSchemaDerivationMethod elementBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 68const XmlSchemaDerivationMethod elementFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 69const XmlSchemaDerivationMethod simpleTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 70const XmlSchemaDerivationMethod complexTypeBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 71const XmlSchemaDerivationMethod complexTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension;
System\Xml\Schema\SchemaCollectionCompiler.cs (15)
461if ((type.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) { 472simpleType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 547if (unionMember.DerivedBy == XmlSchemaDerivationMethod.Restriction && (unionDatatype.HasLexicalFacets || unionDatatype.HasValueFacets) ) { 588CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 589complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 707if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) { 726complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 727CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 803if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) { 806CompileLocalAttributes(baseType, complexType, complexRestriction.Attributes, complexRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 818complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 823if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction) { 1123XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~XmlSchemaDerivationMethod.Restriction); 1425(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) { 1446(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (7)
36const XmlSchemaDerivationMethod schemaBlockDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 37const XmlSchemaDerivationMethod schemaFinalDefaultAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 38const XmlSchemaDerivationMethod elementBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension | XmlSchemaDerivationMethod.Substitution; 39const XmlSchemaDerivationMethod elementFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 40const XmlSchemaDerivationMethod simpleTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union; 41const XmlSchemaDerivationMethod complexTypeBlockAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension; 42const XmlSchemaDerivationMethod complexTypeFinalAllowed = XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension;
System\Xml\Schema\SchemaSetCompiler.cs (17)
528if ((type.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) { 539simpleType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 614if (unionMember.DerivedBy == XmlSchemaDerivationMethod.Restriction && (unionDatatype.HasLexicalFacets || unionDatatype.HasValueFacets) ) { 656CompileLocalAttributes(XmlSchemaComplexType.AnyType, complexType, complexType.Attributes, complexType.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 657complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 765if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) { 784complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 785CompileLocalAttributes(baseType, complexType, simpleRestriction.Attributes, simpleRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 856if ((baseType.FinalResolved & XmlSchemaDerivationMethod.Restriction) != 0) { 859CompileLocalAttributes(baseType, complexType, complexRestriction.Attributes, complexRestriction.AnyAttribute, XmlSchemaDerivationMethod.Restriction); 877complexType.SetDerivedBy(XmlSchemaDerivationMethod.Restriction); 883if (baseType != null && baseType != XmlSchemaComplexType.AnyType && complexType.DerivedBy == XmlSchemaDerivationMethod.Restriction) { 1299XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension : 1303XmlSchemaDerivationMethod.Substitution | XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.Extension : 1312XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~(XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union))) ) { 1704(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) { 1725(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) {
System\Xml\Schema\XmlValueConverter.cs (1)
3313while (schemaType.DerivedBy == XmlSchemaDerivationMethod.Restriction)
System\Xml\Schema\XsdBuilder.cs (1)
604(int)XmlSchemaDerivationMethod.Restriction,