XsdDataContractImporter Constructor (CodeCompileUnit^)

 

Initializes a new instance of the XsdDataContractImporter class with the CodeCompileUnit that will be used to generate CLR code.

Namespace:   System.Runtime.Serialization
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

public:
XsdDataContractImporter(
	CodeCompileUnit^ codeCompileUnit
)

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: