102 references to XmlSchemaUse
System.Data (4)
fx\src\data\System\Data\XMLSchema.cs (4)
1999column.AllowDBNull = !(attrib.Use == XmlSchemaUse.Required); 2011if (attrib.Use == XmlSchemaUse.Prohibited) { 2027string strDefault = (attrib.Use == XmlSchemaUse.Required) ? GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE) : attr.DefaultValue; 2028if ((attr.Use == XmlSchemaUse.Optional) && (strDefault == null ))
System.Runtime.Serialization (2)
System\Runtime\Serialization\SchemaImporter.cs (2)
1393if (attribute.Use == XmlSchemaUse.Prohibited) 1399if (attribute.RefName.IsEmpty || attribute.RefName.Namespace != Globals.SerializationNamespace || attribute.Use == XmlSchemaUse.Required)
System.ServiceModel (2)
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (2)
80dAttr.Use = XmlSchemaUse.Optional; 108nqAttr.Use = XmlSchemaUse.Optional;
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\SchemaUtility.cs (2)
240instanceId.Use = XmlSchemaUse.Required; 251messageNumber.Use = XmlSchemaUse.Required;
System.Web.Services (12)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (12)
3267if (((global::System.Xml.Schema.XmlSchemaUse)o.@Use) != global::System.Xml.Schema.XmlSchemaUse.@None) { 3268WriteAttribute(@"use", @"", Write35_XmlSchemaUse(((global::System.Xml.Schema.XmlSchemaUse)o.@Use))); 3275string Write35_XmlSchemaUse(global::System.Xml.Schema.XmlSchemaUse v) { 3278case global::System.Xml.Schema.XmlSchemaUse.@Optional: s = @"optional"; break; 3279case global::System.Xml.Schema.XmlSchemaUse.@Prohibited: s = @"prohibited"; break; 3280case global::System.Xml.Schema.XmlSchemaUse.@Required: s = @"required"; break; 8675global::System.Xml.Schema.XmlSchemaUse Read35_XmlSchemaUse(string s) { 8677case @"optional": return global::System.Xml.Schema.XmlSchemaUse.@Optional; 8678case @"prohibited": return global::System.Xml.Schema.XmlSchemaUse.@Prohibited; 8679case @"required": return global::System.Xml.Schema.XmlSchemaUse.@Required; 8680default: throw CreateUnknownConstantException(s, typeof(global::System.Xml.Schema.XmlSchemaUse));
System.Xml (80)
System\Xml\Schema\Inference\Infer.cs (9)
331attributeReference.Use = XmlSchemaUse.Required; 335attributeReference.Use = XmlSchemaUse.Optional; 390attributeReference.Use = XmlSchemaUse.Required; 394attributeReference.Use = XmlSchemaUse.Optional; 440xsa.Use = XmlSchemaUse.Required; 442xsa.Use = XmlSchemaUse.Optional; 1423attr.Use = XmlSchemaUse.Optional; 1428attr.Use = XmlSchemaUse.Optional; 1433attr.Use = XmlSchemaUse.Optional;
System\Xml\Schema\Preprocessor.cs (3)
984if (attribute.Use != XmlSchemaUse.None) { 1034if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None) {
System\Xml\Schema\SchemaCollectionCompiler.cs (17)
595if (attribute.Use != XmlSchemaUse.Prohibited) { 615if (attribute.Use == XmlSchemaUse.Prohibited) { 1375if (attribute.Use != XmlSchemaUse.Prohibited) { 1421if (attribute.Use != XmlSchemaUse.Prohibited) { 1424if (attribute.Use != XmlSchemaUse.Prohibited || 1425(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) { 1445if (attributeValue.Use != XmlSchemaUse.Prohibited || 1446(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) { 1474Debug.Assert(attribute.Use != XmlSchemaUse.Prohibited); 1475if (attribute.AttributeSchemaType != attributeBase.AttributeSchemaType || attributeBase.Use == XmlSchemaUse.Prohibited) { 1500if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) { 1512else if (attribute.Use == XmlSchemaUse.Prohibited) { 1716case XmlSchemaUse.None: 1717case XmlSchemaUse.Optional: 1720case XmlSchemaUse.Required: 1723case XmlSchemaUse.Prohibited:
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
676if (attribute.Use != XmlSchemaUse.None) { 724if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None) {
System\Xml\Schema\SchemaSetCompiler.cs (25)
672if (attribute.Use == XmlSchemaUse.Prohibited) { 1651if (attr.Use == XmlSchemaUse.Prohibited) { 1700if (attr.Use != XmlSchemaUse.Prohibited) { 1703if (attr.Use != XmlSchemaUse.Prohibited || 1704(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) { 1724if (attribute.Use != XmlSchemaUse.Prohibited || 1725(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) { 1756Debug.Assert(attribute.Use != XmlSchemaUse.Prohibited); 1757if (attributeBase.Use != XmlSchemaUse.Prohibited && attribute.AttributeSchemaType != attributeBase.AttributeSchemaType) { //Extension allows previously prohibited attributes to be re-added, 1779if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) { 1791else if (attributeBase.Use == XmlSchemaUse.Required && (attribute.Use != XmlSchemaUse.Required)) { //If base is required, derived should also be required 1794else if (attribute.Use == XmlSchemaUse.Prohibited) { 1842if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) { 1845else if (attributeBase.Use == XmlSchemaUse.Required && attribute.Use != XmlSchemaUse.Required) { 1848else if (attribute.Use == XmlSchemaUse.Prohibited) { //If derived att is prohibited, continue 1858else if (attributeBase.Use == XmlSchemaUse.Required) { 2056if (xa.Use == XmlSchemaUse.Required) { 2075case XmlSchemaUse.None: 2076case XmlSchemaUse.Optional: 2079case XmlSchemaUse.Required: 2082case XmlSchemaUse.Prohibited:
System\Xml\Schema\XmlSchemaAttribute.cs (4)
24XmlSchemaUse use = XmlSchemaUse.None; 111[XmlAttribute("use"), DefaultValue(XmlSchemaUse.None)] 112public XmlSchemaUse Use {
System\Xml\Schema\XmlSchemaComplexType.cs (1)
340if (attribute.Use != XmlSchemaUse.Prohibited) {
System\Xml\Schema\XsdBuilder.cs (1)
1213builder.attribute.Use = (XmlSchemaUse)builder.ParseEnum(value, "use", UseStringValues);
System\Xml\Serialization\SchemaObjectWriter.cs (7)
271XmlSchemaUse use = o.Use == XmlSchemaUse.None ? XmlSchemaUse.Optional : o.Use; 602string Write30_XmlSchemaUse(XmlSchemaUse v) { 605case XmlSchemaUse.@Optional:s = @"optional"; break; 606case XmlSchemaUse.@Prohibited:s = @"prohibited"; break; 607case XmlSchemaUse.@Required:s = @"required"; break;
System\Xml\Serialization\SoapSchemaImporter.cs (1)
327if (attr.Use != XmlSchemaUse.Prohibited) throw new InvalidOperationException(Res.GetString(Res.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace));
System\Xml\Serialization\XmlSchemaExporter.cs (5)
631attribute.Use = XmlSchemaUse.Optional; 657attribute.Use = XmlSchemaUse.None; 659attribute.Use = XmlSchemaUse.Required; 675attribute.Use = XmlSchemaUse.None; 681refAttribute.Use = XmlSchemaUse.None;
System\Xml\Serialization\XmlSchemaImporter.cs (4)
1384if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.TypeDesc.IsValueType && !attribute.HasDefault && !member.TypeDesc.HasIsEmpty) { 1487if (attribute.Use == XmlSchemaUse.Prohibited) return null; 1519accessor.IsOptional = attribute.Use != XmlSchemaUse.Required;