Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
System.CodeDom Namespace

The System.CodeDom namespace contains classes that can be used to represent the elements and structure of a source code document. The classes in this namespace can be used to model the structure of a source code document that can be output as source code in a supported language using the functionality provided by the System.CodeDom.Compiler namespace.

For more information about using the CodeDOM to represent and generate source code, see Dynamic Source Code Generation and Compilation.

For a table that lists the CodeDOM elements by type and function, see the CodeDOM Quick Reference.

  ClassDescription
za6cc751.pubclass(en-us,VS.90).gifCodeArgumentReferenceExpression Represents a reference to the value of an argument passed to a method.
za6cc751.pubclass(en-us,VS.90).gifCodeArrayCreateExpression Represents an expression that creates an array.
za6cc751.pubclass(en-us,VS.90).gifCodeArrayIndexerExpression Represents a reference to an index of an array.
za6cc751.pubclass(en-us,VS.90).gifCodeAssignStatement Represents a simple assignment statement.
za6cc751.pubclass(en-us,VS.90).gifCodeAttachEventStatement Represents a statement that attaches an event-handler delegate to an event.
za6cc751.pubclass(en-us,VS.90).gifCodeAttributeArgument Represents an argument used in a metadata attribute declaration.
za6cc751.pubclass(en-us,VS.90).gifCodeAttributeArgumentCollection Represents a collection of CodeAttributeArgument objects.
za6cc751.pubclass(en-us,VS.90).gifCodeAttributeDeclaration Represents an attribute declaration.
za6cc751.pubclass(en-us,VS.90).gifCodeAttributeDeclarationCollection Represents a collection of CodeAttributeDeclaration objects.
za6cc751.pubclass(en-us,VS.90).gifCodeBaseReferenceExpression Represents a reference to the base class.
za6cc751.pubclass(en-us,VS.90).gifCodeBinaryOperatorExpression Represents an expression that consists of a binary operation between two expressions.
za6cc751.pubclass(en-us,VS.90).gifCodeCastExpression Represents an expression cast to a data type or interface.
za6cc751.pubclass(en-us,VS.90).gifCodeCatchClause Represents a catch exception block of a try/catch statement.
za6cc751.pubclass(en-us,VS.90).gifCodeCatchClauseCollection Represents a collection of CodeCatchClause objects.
za6cc751.pubclass(en-us,VS.90).gifCodeChecksumPragma Represents a code checksum pragma code entity.
za6cc751.pubclass(en-us,VS.90).gifCodeComment Represents a comment.
za6cc751.pubclass(en-us,VS.90).gifCodeCommentStatement Represents a statement consisting of a single comment.
za6cc751.pubclass(en-us,VS.90).gifCodeCommentStatementCollection Represents a collection of CodeCommentStatement objects.
za6cc751.pubclass(en-us,VS.90).gifCodeCompileUnit Provides a container for a CodeDOM program graph.
za6cc751.pubclass(en-us,VS.90).gifCodeConditionStatement Represents a conditional branch statement, typically represented as an if statement.
za6cc751.pubclass(en-us,VS.90).gifCodeConstructor Represents a declaration for an instance constructor of a type.
za6cc751.pubclass(en-us,VS.90).gifCodeDefaultValueExpression Represents a reference to a default value.
za6cc751.pubclass(en-us,VS.90).gifCodeDelegateCreateExpression Represents an expression that creates a delegate.
za6cc751.pubclass(en-us,VS.90).gifCodeDelegateInvokeExpression Represents an expression that raises an event.
za6cc751.pubclass(en-us,VS.90).gifCodeDirectionExpression Represents an expression used as a method invoke parameter along with a reference direction indicator.
za6cc751.pubclass(en-us,VS.90).gifCodeDirective Serves as the base class for code directive classes.
za6cc751.pubclass(en-us,VS.90).gifCodeDirectiveCollection Represents a collection of CodeDirective objects.
za6cc751.pubclass(en-us,VS.90).gifCodeEntryPointMethod Represents the entry point method of an executable.
za6cc751.pubclass(en-us,VS.90).gifCodeEventReferenceExpression Represents a reference to an event.
za6cc751.pubclass(en-us,VS.90).gifCodeExpression Represents a code expression. This is a base class for other code expression objects that is never instantiated.
za6cc751.pubclass(en-us,VS.90).gifCodeExpressionCollection Represents a collection of CodeExpression objects.
za6cc751.pubclass(en-us,VS.90).gifCodeExpressionStatement Represents a statement that consists of a single expression.
za6cc751.pubclass(en-us,VS.90).gifCodeFieldReferenceExpression Represents a reference to a field.
za6cc751.pubclass(en-us,VS.90).gifCodeGotoStatement Represents a goto statement.
za6cc751.pubclass(en-us,VS.90).gifCodeIndexerExpression Represents a reference to an indexer property of an object.
za6cc751.pubclass(en-us,VS.90).gifCodeIterationStatement Represents a for statement, or a loop through a block of statements, using a test expression as a condition for continuing to loop.
za6cc751.pubclass(en-us,VS.90).gifCodeLabeledStatement Represents a labeled statement or a stand-alone label.
za6cc751.pubclass(en-us,VS.90).gifCodeLinePragma Represents a specific location within a specific file.
za6cc751.pubclass(en-us,VS.90).gifCodeMemberEvent Represents a declaration for an event of a type.
za6cc751.pubclass(en-us,VS.90).gifCodeMemberField Represents a declaration for a field of a type.
za6cc751.pubclass(en-us,VS.90).gifCodeMemberMethod Represents a declaration for a method of a type.
za6cc751.pubclass(en-us,VS.90).gifCodeMemberProperty Represents a declaration for a property of a type.
za6cc751.pubclass(en-us,VS.90).gifCodeMethodInvokeExpression Represents an expression that invokes a method.
za6cc751.pubclass(en-us,VS.90).gifCodeMethodReferenceExpression Represents a reference to a method.
za6cc751.pubclass(en-us,VS.90).gifCodeMethodReturnStatement Represents a return value statement.
za6cc751.pubclass(en-us,VS.90).gifCodeNamespace Represents a namespace declaration.
za6cc751.pubclass(en-us,VS.90).gifCodeNamespaceCollection Represents a collection of CodeNamespace objects.
za6cc751.pubclass(en-us,VS.90).gifCodeNamespaceImport Represents a namespace import directive that indicates a namespace to use.
za6cc751.pubclass(en-us,VS.90).gifCodeNamespaceImportCollection Represents a collection of CodeNamespaceImport objects.
za6cc751.pubclass(en-us,VS.90).gifCodeObject Provides a common base class for most Code Document Object Model (CodeDOM) objects.
za6cc751.pubclass(en-us,VS.90).gifCodeObjectCreateExpression Represents an expression that creates a new instance of a type.
za6cc751.pubclass(en-us,VS.90).gifCodeParameterDeclarationExpression Represents a parameter declaration for a method, property, or constructor.
za6cc751.pubclass(en-us,VS.90).gifCodeParameterDeclarationExpressionCollection Represents a collection of CodeParameterDeclarationExpression objects.
za6cc751.pubclass(en-us,VS.90).gifCodePrimitiveExpression Represents a primitive data type value.
za6cc751.pubclass(en-us,VS.90).gifCodePropertyReferenceExpression Represents a reference to the value of a property.
za6cc751.pubclass(en-us,VS.90).gifCodePropertySetValueReferenceExpression Represents the value argument of a property set method call within a property set method.
za6cc751.pubclass(en-us,VS.90).gifCodeRegionDirective Specifies the name and mode for a code region.
za6cc751.pubclass(en-us,VS.90).gifCodeRemoveEventStatement Represents a statement that removes an event handler.
za6cc751.pubclass(en-us,VS.90).gifCodeSnippetCompileUnit Represents a literal code fragment that can be compiled.
za6cc751.pubclass(en-us,VS.90).gifCodeSnippetExpression Represents a literal expression.
za6cc751.pubclass(en-us,VS.90).gifCodeSnippetStatement Represents a statement using a literal code fragment.
za6cc751.pubclass(en-us,VS.90).gifCodeSnippetTypeMember Represents a member of a type using a literal code fragment.
za6cc751.pubclass(en-us,VS.90).gifCodeStatement Represents the abstract base class from which all code statements derive.
za6cc751.pubclass(en-us,VS.90).gifCodeStatementCollection Represents a collection of CodeStatement objects.
za6cc751.pubclass(en-us,VS.90).gifCodeThisReferenceExpression Represents a reference to the current local class instance.
za6cc751.pubclass(en-us,VS.90).gifCodeThrowExceptionStatement Represents a statement that throws an exception.
za6cc751.pubclass(en-us,VS.90).gifCodeTryCatchFinallyStatement Represents a try block with any number of catch clauses and, optionally, a finally block.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeConstructor Represents a static constructor for a class.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeDeclaration Represents a type declaration for a class, structure, interface, or enumeration.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeDeclarationCollection Represents a collection of CodeTypeDeclaration objects.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeDelegate Represents a delegate declaration.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeMember Provides a base class for a member of a type. Type members include fields, methods, properties, constructors and nested types.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeMemberCollection Represents a collection of CodeTypeMember objects.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeOfExpression Represents a typeof expression, an expression that returns a Type for a specified type name.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeParameter Represents a type parameter of a generic type or method.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeParameterCollection Represents a collection of CodeTypeParameter objects.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeReference Represents a reference to a type.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeReferenceCollection Represents a collection of CodeTypeReference objects.
za6cc751.pubclass(en-us,VS.90).gifCodeTypeReferenceExpression Represents a reference to a data type.
za6cc751.pubclass(en-us,VS.90).gifCodeVariableDeclarationStatement Represents a variable declaration.
za6cc751.pubclass(en-us,VS.90).gifCodeVariableReferenceExpression Represents a reference to a local variable.
  EnumerationDescription
za6cc751.pubenumeration(en-us,VS.90).gifCodeBinaryOperatorType Defines identifiers for supported binary operators.
za6cc751.pubenumeration(en-us,VS.90).gifCodeRegionMode Specifies the start or end of a code region.
za6cc751.pubenumeration(en-us,VS.90).gifCodeTypeReferenceOptions Specifies how the code type reference is to be resolved.
za6cc751.pubenumeration(en-us,VS.90).gifFieldDirection Defines identifiers used to indicate the direction of parameter and argument declarations.
za6cc751.pubenumeration(en-us,VS.90).gifMemberAttributes Defines member attribute identifiers for class members.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker