Export (0) Print
Expand All

SchemaImporterExtension.ImportAnyElement Method

Note: This method is new in the .NET Framework version 2.0.

Handles the importation of the <xsd:any> elements in the schema.

Namespace: System.Xml.Serialization.Advanced
Assembly: System.Xml (in system.xml.dll)

public virtual string ImportAnyElement (
	XmlSchemaAny any,
	bool mixed,
	XmlSchemas schemas,
	XmlSchemaImporter importer,
	CodeCompileUnit compileUnit,
	CodeNamespace mainNamespace,
	CodeGenerationOptions options,
	CodeDomProvider codeProvider
)
public String ImportAnyElement (
	XmlSchemaAny any, 
	boolean mixed, 
	XmlSchemas schemas, 
	XmlSchemaImporter importer, 
	CodeCompileUnit compileUnit, 
	CodeNamespace mainNamespace, 
	CodeGenerationOptions options, 
	CodeDomProvider codeProvider
)
public function ImportAnyElement (
	any : XmlSchemaAny, 
	mixed : boolean, 
	schemas : XmlSchemas, 
	importer : XmlSchemaImporter, 
	compileUnit : CodeCompileUnit, 
	mainNamespace : CodeNamespace, 
	options : CodeGenerationOptions, 
	codeProvider : CodeDomProvider
) : String

Parameters

any

An XmlSchemaAny that represents the xsd:any element found in the XML Schema Document (XSD).

mixed

A Boolean that indicates whether the XSD complex attribute has been set to "mixed". true, if the attribute has been set to mixed, otherwise false.

schemas

An XmlSchemas that contains the collection of schemas found in the XSD.

importer

The XmlSchemaImporter that is the importer being used.

compileUnit

A CodeCompileUnit to which you can add CodeDOM structures to generate alternative code for the XSD.

mainNamespace

A CodeNamespace that represents the current namespace for the element.

options

A CodeGenerationOptions for the setting options on the code compiler.

codeProvider

A CodeDomProvider that is the CodeDOM provider used to generate the new code.

Return Value

The name of the CLR type that the element maps to.

In order to control the generation of the code, you must use the classes found in the System.CodeDom namespace. For more information, see Using the CodeDOM and CodeDOM Quick Reference.

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft