XsdDataContractImporter Constructor (CodeCompileUnit^)
.NET Framework (current version)
Initializes a new instance of the XsdDataContractImporter class with the CodeCompileUnit that will be used to generate CLR code.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Parameters
- codeCompileUnit
-
Type:
System.CodeDom::CodeCompileUnit^
The CodeCompileUnit that will be used to store the code.
Use this constructor to add more code into a CodeCompileUnit that has already been generated.
The following example creates an XmlSchemaSet and calls the Import method to create a CodeCompileUnit. The CodeCompileUnit is then used to create both Visual C# and Visual Basic code files.
.NET Framework
Available since 3.0
Available since 3.0
Show: