100 references to XmlSchemaUse
netstandard (1)
netstandard.cs (1)
2370[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaUse))]
System.Data.Common (4)
System\Data\XMLSchema.cs (4)
2299column.AllowDBNull = !(attrib.Use == XmlSchemaUse.Required); 2313if (attrib.Use == XmlSchemaUse.Prohibited) 2332string? strDefault = (attrib.Use == XmlSchemaUse.Required) ? GetMsdataAttribute(attr, Keywords.MSD_DEFAULTVALUE) : attr.DefaultValue; 2333if ((attr.Use == XmlSchemaUse.Optional) && (strDefault == null))
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaImporter.cs (2)
1379if (attribute.Use == XmlSchemaUse.Prohibited) 1385if (attribute.RefName.IsEmpty || attribute.RefName.Namespace != Globals.SerializationNamespace || attribute.Use == XmlSchemaUse.Required)
System.Private.Xml (79)
System\Xml\Schema\Inference\Infer.cs (9)
311attributeReference.Use = XmlSchemaUse.Required; 315attributeReference.Use = XmlSchemaUse.Optional; 371attributeReference.Use = XmlSchemaUse.Required; 375attributeReference.Use = XmlSchemaUse.Optional; 421xsa.Use = XmlSchemaUse.Required; 423xsa.Use = XmlSchemaUse.Optional; 1427attr.Use = XmlSchemaUse.Optional; 1434attr.Use = XmlSchemaUse.Optional; 1440attr.Use = XmlSchemaUse.Optional;
System\Xml\Schema\Preprocessor.cs (3)
1158if (attribute.Use != XmlSchemaUse.None) 1220if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
System\Xml\Schema\SchemaCollectionCompiler.cs (17)
754if (attribute!.Use != XmlSchemaUse.Prohibited) 779if (attribute!.Use == XmlSchemaUse.Prohibited) 1732if (attribute.Use != XmlSchemaUse.Prohibited) 1792if (attribute.Use != XmlSchemaUse.Prohibited) 1796if (attribute.Use != XmlSchemaUse.Prohibited || 1797(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 1822if (attributeValue!.Use != XmlSchemaUse.Prohibited || 1823(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 1859Debug.Assert(attribute.Use != XmlSchemaUse.Prohibited); 1860if (attribute.AttributeSchemaType != attributeBase.AttributeSchemaType || attributeBase.Use == XmlSchemaUse.Prohibited) 1893if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) 1897else if (attribute.Use == XmlSchemaUse.Prohibited) 2087case XmlSchemaUse.None: 2088case XmlSchemaUse.Optional: 2091case XmlSchemaUse.Required: 2094case XmlSchemaUse.Prohibited:
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
832if (attribute.Use != XmlSchemaUse.None) 892if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
System\Xml\Schema\SchemaSetCompiler.cs (25)
855if (attribute!.Use == XmlSchemaUse.Prohibited) 2086if (attr.Use == XmlSchemaUse.Prohibited) 2152if (attr.Use != XmlSchemaUse.Prohibited) 2156if (attr.Use != XmlSchemaUse.Prohibited || 2157(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 2182if (attribute!.Use != XmlSchemaUse.Prohibited || 2183(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 2224Debug.Assert(attribute.Use != XmlSchemaUse.Prohibited); 2225if (attributeBase.Use != XmlSchemaUse.Prohibited && attribute.AttributeSchemaType != attributeBase.AttributeSchemaType) 2254if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) 2258else if (attributeBase.Use == XmlSchemaUse.Required && (attribute.Use != XmlSchemaUse.Required)) 2262else if (attribute.Use == XmlSchemaUse.Prohibited) 2314if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) 2318else if (attributeBase.Use == XmlSchemaUse.Required && attribute.Use != XmlSchemaUse.Required) 2322else if (attribute.Use == XmlSchemaUse.Prohibited) 2335else if (attributeBase.Use == XmlSchemaUse.Required) 2531if (xa.Use == XmlSchemaUse.Required) 2559case XmlSchemaUse.None: 2560case XmlSchemaUse.Optional: 2563case XmlSchemaUse.Required: 2566case XmlSchemaUse.Prohibited:
System\Xml\Schema\XmlSchemaAttribute.cs (4)
18private XmlSchemaUse _use = XmlSchemaUse.None; 80[XmlAttribute("use"), DefaultValue(XmlSchemaUse.None)] 81public XmlSchemaUse Use
System\Xml\Schema\XmlSchemaComplexType.cs (1)
300if (attribute!.Use != XmlSchemaUse.Prohibited)
System\Xml\Schema\XsdBuilder.cs (1)
1276builder._attribute!.Use = (XmlSchemaUse)builder.ParseEnum(value, "use", s_useStringValues);
System\Xml\Serialization\SchemaObjectWriter.cs (7)
326XmlSchemaUse use = o.Use == XmlSchemaUse.None ? XmlSchemaUse.Optional : o.Use; 729private static string? Write30_XmlSchemaUse(XmlSchemaUse v) 734case XmlSchemaUse.@Optional: s = @"optional"; break; 735case XmlSchemaUse.@Prohibited: s = @"prohibited"; break; 736case XmlSchemaUse.@Required: s = @"required"; break;
System\Xml\Serialization\XmlSchemaExporter.cs (5)
695attribute.Use = XmlSchemaUse.Optional; 727attribute.Use = XmlSchemaUse.None; 730attribute.Use = XmlSchemaUse.Required; 750attribute.Use = XmlSchemaUse.None; 756refAttribute.Use = XmlSchemaUse.None;
System\Xml\Serialization\XmlSchemaImporter.cs (4)
1446if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.TypeDesc!.IsValueType && !attribute.HasDefault && !member.TypeDesc.HasIsEmpty) 1568if (attribute.Use == XmlSchemaUse.Prohibited) return null; 1598accessor.IsOptional = attribute.Use != XmlSchemaUse.Required;
System.Web.Services.Description (12)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (12)
3848if (((global::System.Xml.Schema.XmlSchemaUse)o.@Use) != Xml.Schema.XmlSchemaUse.@None) { 3849WriteAttribute(@"use", @"", Write35_XmlSchemaUse(((global::System.Xml.Schema.XmlSchemaUse)o.@Use))); 3856private string Write35_XmlSchemaUse(global::System.Xml.Schema.XmlSchemaUse v) { 3859case Xml.Schema.XmlSchemaUse.@Optional: s = @"optional"; break; 3860case Xml.Schema.XmlSchemaUse.@Prohibited: s = @"prohibited"; break; 3861case Xml.Schema.XmlSchemaUse.@Required: s = @"required"; break; 10665private global::System.Xml.Schema.XmlSchemaUse Read35_XmlSchemaUse(string s) { 10667case @"optional": return Xml.Schema.XmlSchemaUse.@Optional; 10668case @"prohibited": return Xml.Schema.XmlSchemaUse.@Prohibited; 10669case @"required": return Xml.Schema.XmlSchemaUse.@Required; 10670default: throw CreateUnknownConstantException(s, typeof(global::System.Xml.Schema.XmlSchemaUse));
System.Xml (1)
System.Xml.cs (1)
95[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaUse))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net9.0\System.Xml.ReaderWriter.Forwards.cs (1)
94[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaUse))]