Provides a container for a CodeDOM program graph.
Assembly: System (in System.dll)
Thetype exposes the following members.
|AssemblyCustomAttributes||Gets a collection of custom attributes for the generated assembly.|
|EndDirectives||Gets a CodeDirectiveCollection object containing end directives.|
|Namespaces||Gets the collection of namespaces.|
|ReferencedAssemblies||Gets the referenced assemblies.|
|StartDirectives||Gets a CodeDirectiveCollection object containing start directives.|
|UserData||Gets the user-definable data for the current object. (Inherited from CodeObject.)|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
provides a container for a CodeDOM program graph.
contains a collection that can store CodeNamespace objects containing CodeDOM source code graphs, along with a collection of assemblies referenced by the project, and a collection of attributes for the project assembly.
Some languages support only a single namespace that contains a single class in a compile unit.
The following code example constructs a that models the program structure of a simple "Hello World" program. This code example is part of a larger example that also produces code from this model, and is provided for the CodeDomProvider class.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.