XmlSerializableServices::AddDefaultSchema Method (XmlSchemaSet^, XmlQualifiedName^)
.NET Framework (current version)
Generates a default schema type given the specified type name and adds it to the specified schema set.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
public: static void AddDefaultSchema( XmlSchemaSet^ schemas, XmlQualifiedName^ typeQName )
Parameters
- schemas
-
Type:
System.Xml.Schema::XmlSchemaSet^
An XmlSchemaSet to add the generated schema type to.
- typeQName
-
Type:
System.Xml::XmlQualifiedName^
An XmlQualifiedName that specifies the type name to assign the schema to.
| Exception | Condition |
|---|---|
| ArgumentNullException | The schemas or typeQName argument is null. |
This method contains code for generating a schema type for a data contract type with the specified type name.
.NET Framework
Available since 3.0
Available since 3.0
Show: