19 references to Optional
System.Data (1)
fx\src\data\System\Data\XMLSchema.cs (1)
2028
if ((attr.Use == XmlSchemaUse.
Optional
) && (strDefault == null ))
System.ServiceModel (2)
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (2)
80
dAttr.Use = XmlSchemaUse.
Optional
;
108
nqAttr.Use = XmlSchemaUse.
Optional
;
System.Web.Services (2)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (2)
3278
case global::System.Xml.Schema.XmlSchemaUse.
@Optional
: s = @"optional"; break;
8677
case @"optional": return global::System.Xml.Schema.XmlSchemaUse.
@Optional
;
System.Xml (14)
System\Xml\Schema\Inference\Infer.cs (6)
335
attributeReference.Use = XmlSchemaUse.
Optional
;
394
attributeReference.Use = XmlSchemaUse.
Optional
;
442
xsa.Use = XmlSchemaUse.
Optional
;
1423
attr.Use = XmlSchemaUse.
Optional
;
1428
attr.Use = XmlSchemaUse.
Optional
;
1433
attr.Use = XmlSchemaUse.
Optional
;
System\Xml\Schema\Preprocessor.cs (1)
1034
if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.
Optional
&& attribute.Use != XmlSchemaUse.None) {
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
1717
case XmlSchemaUse.
Optional
:
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
724
if (attribute.DefaultValue != null && attribute.Use != XmlSchemaUse.
Optional
&& attribute.Use != XmlSchemaUse.None) {
System\Xml\Schema\SchemaSetCompiler.cs (1)
2076
case XmlSchemaUse.
Optional
:
System\Xml\Serialization\SchemaObjectWriter.cs (2)
271
XmlSchemaUse use = o.Use == XmlSchemaUse.None ? XmlSchemaUse.
Optional
: o.Use;
605
case XmlSchemaUse.
@Optional
:s = @"optional"; break;
System\Xml\Serialization\XmlSchemaExporter.cs (1)
631
attribute.Use = XmlSchemaUse.
Optional
;
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1384
if ((attribute.Use == XmlSchemaUse.
Optional
|| attribute.Use == XmlSchemaUse.None) && member.TypeDesc.IsValueType && !attribute.HasDefault && !member.TypeDesc.HasIsEmpty) {