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