101 references to XmlSchemaUse
dotnet-svcutil-lib (101)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (9)
333attributeReference.Use = XmlSchemaUse.Required; 337attributeReference.Use = XmlSchemaUse.Optional; 392attributeReference.Use = XmlSchemaUse.Required; 396attributeReference.Use = XmlSchemaUse.Optional; 442xsa.Use = XmlSchemaUse.Required; 444xsa.Use = XmlSchemaUse.Optional; 1446attr.Use = XmlSchemaUse.Optional; 1453attr.Use = XmlSchemaUse.Optional; 1459attr.Use = XmlSchemaUse.Optional;
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (3)
1191if (attribute.Use != XmlSchemaUse.None) 1253if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (20)
745if (attribute.Use != XmlSchemaUse.Prohibited) 770if (attribute.Use == XmlSchemaUse.Prohibited) 1734if (attribute.Use != XmlSchemaUse.Prohibited) 1793if (attribute.Use != XmlSchemaUse.Prohibited) 1797if (attribute.Use != XmlSchemaUse.Prohibited || 1798(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 1823if (attributeValue.Use != XmlSchemaUse.Prohibited || 1824(attributeValue.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 1860Debug.Assert(attribute.Use != XmlSchemaUse.Prohibited); 1861if (attribute.AttributeSchemaType != attributeBase.AttributeSchemaType || attributeBase.Use == XmlSchemaUse.Prohibited) 1894if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) 1908else if (attribute.Use == XmlSchemaUse.Prohibited) 1959if (attribute.Use != XmlSchemaUse.Prohibited) 1970if (attribute.Use == XmlSchemaUse.Optional) 1990if (attribute.Use == XmlSchemaUse.Prohibited) 2168case XmlSchemaUse.None: 2169case XmlSchemaUse.Optional: 2172case XmlSchemaUse.Required: 2175case XmlSchemaUse.Prohibited:
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (3)
840if (attribute.Use != XmlSchemaUse.None) 900if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.Optional && attribute.Use != XmlSchemaUse.None)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (29)
842if (attribute.Use == XmlSchemaUse.Prohibited) 2072if (attr.Use == XmlSchemaUse.Prohibited) 2136if (attr.Use != XmlSchemaUse.Prohibited) 2140if (attr.Use != XmlSchemaUse.Prohibited || 2141(attr.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 2166if (attribute.Use != XmlSchemaUse.Prohibited || 2167(attribute.Use == XmlSchemaUse.Prohibited && derivedBy == XmlSchemaDerivationMethod.Restriction && baseType != XmlSchemaComplexType.AnyType)) 2207Debug.Assert(attribute.Use != XmlSchemaUse.Prohibited); 2208if (attributeBase.Use != XmlSchemaUse.Prohibited && attribute.AttributeSchemaType != attributeBase.AttributeSchemaType) 2237if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) 2251else if (attributeBase.Use == XmlSchemaUse.Required && (attribute.Use != XmlSchemaUse.Required)) 2255else if (attribute.Use == XmlSchemaUse.Prohibited) 2315if (attributeBase.Use == XmlSchemaUse.Prohibited && attribute.Use != XmlSchemaUse.Prohibited) 2319else if (attributeBase.Use == XmlSchemaUse.Required && attribute.Use != XmlSchemaUse.Required) 2323else if (attribute.Use == XmlSchemaUse.Prohibited) 2336else if (attributeBase.Use == XmlSchemaUse.Required) 2364if (attribute.Use != XmlSchemaUse.Prohibited) 2375if (attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) 2395if (attribute.Use == XmlSchemaUse.Prohibited) 2589if (xa.Use == XmlSchemaUse.Required) 2615case XmlSchemaUse.None: 2616case XmlSchemaUse.Optional: 2619case XmlSchemaUse.Required: 2622case XmlSchemaUse.Prohibited:
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaAttribute.cs (4)
26private XmlSchemaUse _use = XmlSchemaUse.None; 120[XmlAttribute("use"), DefaultValue(XmlSchemaUse.None)] 121public XmlSchemaUse Use
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (1)
390if (attribute.Use != XmlSchemaUse.Prohibited)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (1)
1283builder._attribute.Use = (XmlSchemaUse)builder.ParseEnum(value, "use", s_useStringValues);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (7)
327XmlSchemaUse use = o.Use == XmlSchemaUse.None ? XmlSchemaUse.Optional : o.Use; 730private string Write30_XmlSchemaUse(XmlSchemaUse v) 735case XmlSchemaUse.@Optional: s = @"optional"; break; 736case XmlSchemaUse.@Prohibited: s = @"prohibited"; break; 737case XmlSchemaUse.@Required: s = @"required"; break;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
361if (attr.Use != XmlSchemaUse.Prohibited) throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (5)
734attribute.Use = XmlSchemaUse.Optional; 767attribute.Use = XmlSchemaUse.None; 770attribute.Use = XmlSchemaUse.Required; 790attribute.Use = XmlSchemaUse.None; 796refAttribute.Use = XmlSchemaUse.None;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (4)
1586if ((attribute.Use == XmlSchemaUse.Optional || attribute.Use == XmlSchemaUse.None) && member.TypeDesc.IsValueType && !attribute.HasDefault && !member.TypeDesc.HasIsEmpty) 1704if (attribute.Use == XmlSchemaUse.Prohibited) return null; 1739accessor.IsOptional = attribute.Use != XmlSchemaUse.Required;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (2)
1388if (attribute.Use == XmlSchemaUse.Prohibited) 1394if (attribute.RefName.IsEmpty || attribute.RefName.Namespace != Globals.SerializationNamespace || attribute.Use == XmlSchemaUse.Required)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (12)
4127if (((Microsoft.Xml.Schema.XmlSchemaUse)o.@Use) != Microsoft.Xml.Schema.XmlSchemaUse.@None) 4129WriteAttribute(@"use", @"", Write35_XmlSchemaUse(((Microsoft.Xml.Schema.XmlSchemaUse)o.@Use))); 4136private string Write35_XmlSchemaUse(Microsoft.Xml.Schema.XmlSchemaUse v) 4141case Microsoft.Xml.Schema.XmlSchemaUse.@Optional: s = @"optional"; break; 4142case Microsoft.Xml.Schema.XmlSchemaUse.@Prohibited: s = @"prohibited"; break; 4143case Microsoft.Xml.Schema.XmlSchemaUse.@Required: s = @"required"; break; 10741private Microsoft.Xml.Schema.XmlSchemaUse Read35_XmlSchemaUse(string s) 10745case @"optional": return Microsoft.Xml.Schema.XmlSchemaUse.@Optional; 10746case @"prohibited": return Microsoft.Xml.Schema.XmlSchemaUse.@Prohibited; 10747case @"required": return Microsoft.Xml.Schema.XmlSchemaUse.@Required; 10748default: throw CreateUnknownConstantException(s, typeof(Microsoft.Xml.Schema.XmlSchemaUse));