TypedDataSetSchemaImporterExtension.ImportSchemaType Method

Definition

Generates internal type mapping information for an element defined in an XML schema document.

Overloads

ImportSchemaType(XmlSchemaType, XmlSchemaObject, XmlSchemas, XmlSchemaImporter, CodeCompileUnit, CodeNamespace, CodeGenerationOptions, CodeDomProvider)

Generates internal type mapping information for an element defined in an XML schema document.

ImportSchemaType(String, String, XmlSchemaObject, XmlSchemas, XmlSchemaImporter, CodeCompileUnit, CodeNamespace, CodeGenerationOptions, CodeDomProvider)

Generates internal type mapping information for an element defined in an XML schema document.

Remarks

Expands upon the XmlSchemaImporter to provide additional functionality for typed datasets and generates internal mappings to .NET Framework types for XML schema element declarations, including literal XSD message parts in a WSDL document.

ImportSchemaType(XmlSchemaType, XmlSchemaObject, XmlSchemas, XmlSchemaImporter, CodeCompileUnit, CodeNamespace, CodeGenerationOptions, CodeDomProvider)

Generates internal type mapping information for an element defined in an XML schema document.

public:
 override System::String ^ ImportSchemaType(System::Xml::Schema::XmlSchemaType ^ type, System::Xml::Schema::XmlSchemaObject ^ context, 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 override string ImportSchemaType (System.Xml.Schema.XmlSchemaType type, System.Xml.Schema.XmlSchemaObject context, 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);
override this.ImportSchemaType : System.Xml.Schema.XmlSchemaType * System.Xml.Schema.XmlSchemaObject * System.Xml.Serialization.XmlSchemas * System.Xml.Serialization.XmlSchemaImporter * System.CodeDom.CodeCompileUnit * System.CodeDom.CodeNamespace * System.Xml.Serialization.CodeGenerationOptions * System.CodeDom.Compiler.CodeDomProvider -> string
Public Overrides Function ImportSchemaType (type As XmlSchemaType, context As XmlSchemaObject, schemas As XmlSchemas, importer As XmlSchemaImporter, compileUnit As CodeCompileUnit, mainNamespace As CodeNamespace, options As CodeGenerationOptions, codeProvider As CodeDomProvider) As String

Parameters

type
XmlSchemaType

The XML schema type.

context
XmlSchemaObject

An XmlSchemaObject that represents the root class for the Xml schema object model hierarchy and serves as a base class for classes such as the XmlSchema class.

schemas
XmlSchemas

An XmlSchema class that represents a collection of XML schemas.

importer
XmlSchemaImporter

The base XmlSchemaImporter that generates internal mappings to .NET Framework types for XML schema element declarations, including literal XSD message parts in a WSDL document.

compileUnit
CodeCompileUnit

The CodeCompileUnit to contain the generated code.

mainNamespace
CodeNamespace

The main namespace.

options
CodeGenerationOptions

The CodeGenerationOptions that specifies various options to use when generating .NET Framework types for use with an XML Web service.

codeProvider
CodeDomProvider

The language specific CodeDomProvider to use to generate the dataset.

Returns

A string representing the name of the typed dataset class.

Remarks

Important

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Validate All Inputs.

Expands upon the XmlSchemaImporter to provide additional functionality for typed datasets and generates internal mappings to .NET Framework types for XML schema element declarations, including literal XSD message parts in a WSDL document.

Applies to

ImportSchemaType(String, String, XmlSchemaObject, XmlSchemas, XmlSchemaImporter, CodeCompileUnit, CodeNamespace, CodeGenerationOptions, CodeDomProvider)

Generates internal type mapping information for an element defined in an XML schema document.

public:
 override System::String ^ ImportSchemaType(System::String ^ name, System::String ^ namespaceName, System::Xml::Schema::XmlSchemaObject ^ context, 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 override string ImportSchemaType (string name, string namespaceName, System.Xml.Schema.XmlSchemaObject context, 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);
override this.ImportSchemaType : string * string * System.Xml.Schema.XmlSchemaObject * System.Xml.Serialization.XmlSchemas * System.Xml.Serialization.XmlSchemaImporter * System.CodeDom.CodeCompileUnit * System.CodeDom.CodeNamespace * System.Xml.Serialization.CodeGenerationOptions * System.CodeDom.Compiler.CodeDomProvider -> string
Public Overrides Function ImportSchemaType (name As String, namespaceName As String, context As XmlSchemaObject, schemas As XmlSchemas, importer As XmlSchemaImporter, compileUnit As CodeCompileUnit, mainNamespace As CodeNamespace, options As CodeGenerationOptions, codeProvider As CodeDomProvider) As String

Parameters

name
String

A String representing the name of the schema to import.

namespaceName
String

A String representing the namespace of the XML schema.

context
XmlSchemaObject

An XmlSchemaObject that represents the root class for the XML schema object model hierarchy and serves as a base class for classes such as the XmlSchema class.

schemas
XmlSchemas

An XmlSchema class that represents a collection of XML schemas.

importer
XmlSchemaImporter

The base XmlSchemaImporter that generates internal mappings to .NET Framework types for XML schema element declarations, including literal XSD message parts in a WSDL document.

compileUnit
CodeCompileUnit

The CodeCompileUnit to contain the generated code.

mainNamespace
CodeNamespace

The CodeNamespace that contains the generated dataset.

options
CodeGenerationOptions

The CodeGenerationOptions that specifies various options to use when generating .NET Framework types for use with an XML Web service.

codeProvider
CodeDomProvider

The language specific CodeDomProvider to use to generate the dataset.

Returns

A String representing the name of the typed dataset class.

Remarks

Important

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Validate All Inputs.

Expands upon the XmlSchemaImporter to provide additional functionality for typed datasets and generates internal mappings to .NET Framework types for XML schema element declarations, including literal XSD message parts in a WSDL document.

Applies to