XmlSerializableServices.AddDefaultSchema Method

Definition

Generates a default schema type given the specified type name and adds it to the specified schema set.

C#
public static void AddDefaultSchema(System.Xml.Schema.XmlSchemaSet schemas, System.Xml.XmlQualifiedName typeQName);

Parameters

schemas
XmlSchemaSet

An XmlSchemaSet to add the generated schema type to.

typeQName
XmlQualifiedName

An XmlQualifiedName that specifies the type name to assign the schema to.

Exceptions

The schemas or typeQName argument is null.

Remarks

This method contains code for generating a schema type for a data contract type with the specified type name.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1