XsdDataContractImporter::CanImport Method (XmlSchemaSet^, XmlSchemaElement^)
.NET Framework (current version)
Gets a value that indicates whether a specific schema element contained in an XmlSchemaSet can be imported.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Parameters
- schemas
-
Type:
System.Xml.Schema::XmlSchemaSet^
An XmlSchemaSet to import.
- element
-
Type:
System.Xml.Schema::XmlSchemaElement^
A specific XmlSchemaElement to check in the set of schemas.
| Exception | Condition |
|---|---|
| ArgumentNullException | The schemas or element parameter is null. |
| InvalidDataContractException | A data contract involved in the import is invalid. |
This method checks the type and all schema types referenced from it.
.NET Framework
Available since 3.0
Available since 3.0
Show: