Export (0) Print
Expand All

XsdDataContractImporter.CanImport Method (XmlSchemaSet, XmlQualifiedName)

Gets a value that indicates whether the schemas contained in an XmlSchemaSet can be transformed into a CodeCompileUnit.

Namespace: System.Runtime.Serialization
Assembly: System.Runtime.Serialization (in system.runtime.serialization.dll)

public bool CanImport (
	XmlSchemaSet schemas,
	XmlQualifiedName typeName
)
public boolean CanImport (
	XmlSchemaSet schemas, 
	XmlQualifiedName typeName
)
public function CanImport (
	schemas : XmlSchemaSet, 
	typeName : XmlQualifiedName
) : boolean
Not applicable.

Parameters

schemas

A XmlSchemaSet that contains the schema representations.

typeName

An IList of XmlQualifiedName that specifies the names of the schema types that need to be imported from the XmlSchemaSet.

Return Value

true if the schemas can be transformed to data contract types; otherwise, false.

For more information about types that can be imported, see Types Supported by the Data Contract Serializer.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft