20 writes to Use
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 (1)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
7394o.@Use = Read35_XmlSchemaUse(Reader.Value);
System.Xml (15)
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\XsdBuilder.cs (1)
1213builder.attribute.Use = (XmlSchemaUse)builder.ParseEnum(value, "use", UseStringValues);
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;
58 references to Use
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.Web.Services (2)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (2)
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)));
System.Xml (50)
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 (14)
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) { 1715switch (xa.Use) {
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 (22)
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) { 2074switch (xa.Use) {
System\Xml\Schema\XmlSchemaComplexType.cs (1)
340if (attribute.Use != XmlSchemaUse.Prohibited) {
System\Xml\Serialization\SchemaObjectWriter.cs (2)
271XmlSchemaUse use = o.Use == XmlSchemaUse.None ? XmlSchemaUse.Optional : o.Use;
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\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;