Partager via


SchemaImporterExtension Technology Sample

This sample demonstrates a custom SchemaImporterExtension that allows fine control over code generation when an XML schema is imported. The application shows how to build, register and invoke this extension.

For information about using the samples, see the following topics:

To build the sample using the command prompt

  1. Open a Command Prompt window and navigate to one of the language-specific subdirectories for the sample.

  2. Type msbuild.exe OrderSchemaImporterExtension.sln at the command line.

To build the sample using Visual Studio

  1. Open Windows Explorer and navigate to one of the language-specific subdirectories for the sample.

  2. Double-click the icon for OrderSchemaImporterExtension.sln to open the file in Visual Studio.

  3. On the Build menu, click Build Solution.

The application will be built in the default \bin or \bin\Debug directory.

To run the sample

  1. Navigate to the directory containing the new executable, using the command prompt.

  2. Type [exe name] at the command line.

Remarks

For more information about sample binary creation and registration steps, see the comments in the source code and build.proj files.

See Also

Reference

CodeCompileUnit
CodeNamespace
CodeNamespaceImport
CSharpCodeProvider
IXmlSerializable
SchemaImporterExtension
System.CodeDom
System.CodeDom.Compiler
System.Web.Services.Description
System.Web.Services.Discovery
System.Xml.Serialization
Uri
VBCodeProvider
WebReference
XmlSchemaImporter