12 writes to IncludeInSchema
System.Xml (12)
System\Xml\Serialization\SchemaImporter.cs (1)
168
mapping.
IncludeInSchema
= false;
System\Xml\Serialization\SoapReflectionImporter.cs (3)
241
mapping.
IncludeInSchema
= false;
288
mapping.
IncludeInSchema
= false; //baseMapping.IncludeInSchema;
312
if (a.SoapType != null) mapping.
IncludeInSchema
= a.SoapType.IncludeInSchema;
System\Xml\Serialization\SoapSchemaImporter.cs (2)
242
mapping.
IncludeInSchema
= false;
304
structMapping.
IncludeInSchema
= false;
System\Xml\Serialization\XmlReflectionImporter.cs (4)
567
mapping.
IncludeInSchema
= false;
605
mapping.
IncludeInSchema
= baseMapping.IncludeInSchema;
665
mapping.
IncludeInSchema
= a.XmlType.IncludeInSchema;
1054
mapping.
IncludeInSchema
= a.XmlType == null ? true : a.XmlType.IncludeInSchema;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1446
xmlnsMapping.
IncludeInSchema
= false;
1660
enumMapping.
IncludeInSchema
= false;
13 references to IncludeInSchema
System.Xml (13)
System\Xml\Serialization\CodeExporter.cs (1)
171
if (!derived.ReferencedByElement && derived.
IncludeInSchema
&& !derived.IsAnonymousType) {
System\Xml\Serialization\SoapCodeExporter.cs (2)
114
AddTypeMetadata(codeClass.CustomAttributes, typeof(SoapTypeAttribute), mapping.TypeDesc.Name, Accessor.UnescapeName(mapping.TypeName), mapping.Namespace, mapping.
IncludeInSchema
);
125
if (!mapping.
IncludeInSchema
)
System\Xml\Serialization\SoapSchemaExporter.cs (3)
280
if (!mapping.
IncludeInSchema
) throw new InvalidOperationException(Res.GetString(Res.XmlSoapCannotIncludeInSchema, mapping.TypeDesc.Name));
288
if (mapping.BaseMapping != null && mapping.BaseMapping.
IncludeInSchema
) {
346
if (derived.
IncludeInSchema
) ExportStructMapping(derived, mapping.TypeDesc.IsRoot ? null : mapping.Namespace);
System\Xml\Serialization\XmlCodeExporter.cs (1)
150
AddTypeMetadata(codeClass.CustomAttributes, typeof(XmlTypeAttribute), mapping.TypeDesc.Name, Accessor.UnescapeName(mapping.TypeName), mapping.Namespace, mapping.
IncludeInSchema
);
System\Xml\Serialization\XmlReflectionImporter.cs (1)
605
mapping.IncludeInSchema = baseMapping.
IncludeInSchema
;
System\Xml\Serialization\XmlSchemaExporter.cs (5)
228
if (!accessor.Mapping.
IncludeInSchema
&& !accessor.Mapping.TypeDesc.IsRoot) {
869
if (!mapping.
IncludeInSchema
) throw new InvalidOperationException(Res.GetString(Res.XmlCannotIncludeInSchema, mapping.TypeDesc.Name));
879
if (mapping.BaseMapping != null && mapping.BaseMapping.
IncludeInSchema
) {
1002
if (derived.
IncludeInSchema
) ExportStructMapping(derived, derived.Namespace, null);
1007
if (!mapping.
IncludeInSchema
) throw new InvalidOperationException(Res.GetString(Res.XmlCannotIncludeInSchema, mapping.TypeDesc.Name));