SchemaImporterExtension.ImportAnyElement(XmlSchemaAny, Boolean, XmlSchemas, XmlSchemaImporter, CodeCompileUnit, CodeNamespace, CodeGenerationOptions, CodeDomProvider) Método

Definição

Lida com a importação de elementos <xsd:any> no esquema.Handles the importation of the <xsd:any> elements in the schema.

public:
 virtual System::String ^ ImportAnyElement(System::Xml::Schema::XmlSchemaAny ^ any, bool mixed, System::Xml::Serialization::XmlSchemas ^ schemas, System::Xml::Serialization::XmlSchemaImporter ^ importer, System::CodeDom::CodeCompileUnit ^ compileUnit, System::CodeDom::CodeNamespace ^ mainNamespace, System::Xml::Serialization::CodeGenerationOptions options, System::CodeDom::Compiler::CodeDomProvider ^ codeProvider);
public virtual string ImportAnyElement (System.Xml.Schema.XmlSchemaAny any, bool mixed, System.Xml.Serialization.XmlSchemas schemas, System.Xml.Serialization.XmlSchemaImporter importer, System.CodeDom.CodeCompileUnit compileUnit, System.CodeDom.CodeNamespace mainNamespace, System.Xml.Serialization.CodeGenerationOptions options, System.CodeDom.Compiler.CodeDomProvider codeProvider);
abstract member ImportAnyElement : System.Xml.Schema.XmlSchemaAny * bool * System.Xml.Serialization.XmlSchemas * System.Xml.Serialization.XmlSchemaImporter * System.CodeDom.CodeCompileUnit * System.CodeDom.CodeNamespace * System.Xml.Serialization.CodeGenerationOptions * System.CodeDom.Compiler.CodeDomProvider -> string
override this.ImportAnyElement : System.Xml.Schema.XmlSchemaAny * bool * System.Xml.Serialization.XmlSchemas * System.Xml.Serialization.XmlSchemaImporter * System.CodeDom.CodeCompileUnit * System.CodeDom.CodeNamespace * System.Xml.Serialization.CodeGenerationOptions * System.CodeDom.Compiler.CodeDomProvider -> string
Public Overridable Function ImportAnyElement (any As XmlSchemaAny, mixed As Boolean, schemas As XmlSchemas, importer As XmlSchemaImporter, compileUnit As CodeCompileUnit, mainNamespace As CodeNamespace, options As CodeGenerationOptions, codeProvider As CodeDomProvider) As String

Parâmetros

any
XmlSchemaAny

O elemento xsd:any encontrado no XSD (documento de esquema XML).The xsd:any element found in the XML Schema Document (XSD).

mixed
Boolean

true para indicar se o atributo complex XSD foi definido como "misto"; caso contrário, false.true to indicate the XSD complex attribute has been set to "mixed"; otherwise, false.

schemas
XmlSchemas

A coleção de esquemas encontrados no XSD.The collection of schemas found in the XSD.

importer
XmlSchemaImporter

O importador que está sendo usado.The importer being used.

compileUnit
CodeCompileUnit

Um CodeCompileUnit ao qual você pode adicionar estruturas CodeDOM para gerar código alternativo para o XSD.A CodeCompileUnit to which you can add CodeDOM structures to generate alternative code for the XSD.

mainNamespace
CodeNamespace

O namespace atual do elemento.The current namespace for the element.

options
CodeGenerationOptions

Uma combinação bit a bit dos valores de enumeração que especifica as opções de configuração do compilador do código.A bitwise combination of the enumeration values that specify the setting options on the code compiler.

codeProvider
CodeDomProvider

O provedor de CodeDOM usado para gerar o novo código.The CodeDOM provider used to generate the new code.

Retornos

String

O nome do tipo CLR para o qual o elemento mapeia.The name of the CLR type that the element maps to.

Comentários

Para controlar a geração do código, você deve usar as classes encontradas no namespace System.CodeDom.In order to control the generation of the code, you must use the classes found in the System.CodeDom namespace. Para obter mais informações, consulte usando a referência rápidaCodeDOM e CodeDom.For more information, see Using the CodeDOM and CodeDOM Quick Reference.

Aplica-se a