XsdDataContractImporter::CodeCompileUnit Property

 

Gets a CodeCompileUnit used for storing the CLR types generated.

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

public:
property CodeCompileUnit^ CodeCompileUnit {
	CodeCompileUnit^ get();
}

Property Value

Type: System.CodeDom::CodeCompileUnit^

A CodeCompileUnit used to store the CLR types generated.

Call this property after importing schemas using the XsdDataContractImporter to access the CodeCompileUnit in which all the generated code is stored.

The following example uses creates a CodeCompileUnit. The CodeCompileUnit is then used to create both a Visual C# and Visual Basic code file.

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

.NET Framework
Available since 3.0
Return to top
Show: