System.CodeDom
TOC
Collapse the table of content
Expand the table of content

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.

ClassDescription
System_CAPS_pubclassCodeArgumentReferenceExpression

Represents a reference to the value of an argument passed to a method.

System_CAPS_pubclassCodeArrayCreateExpression

Represents an expression that creates an array.

System_CAPS_pubclassCodeArrayIndexerExpression

Represents a reference to an index of an array.

System_CAPS_pubclassCodeAssignStatement

Represents a simple assignment statement.

System_CAPS_pubclassCodeAttachEventStatement

Represents a statement that attaches an event-handler delegate to an event.

System_CAPS_pubclassCodeAttributeArgument

Represents an argument used in a metadata attribute declaration.

System_CAPS_pubclassCodeAttributeArgumentCollection

Represents a collection of CodeAttributeArgument objects.

System_CAPS_pubclassCodeAttributeDeclaration

Represents an attribute declaration.

System_CAPS_pubclassCodeAttributeDeclarationCollection

Represents a collection of CodeAttributeDeclaration objects.

System_CAPS_pubclassCodeBaseReferenceExpression

Represents a reference to the base class.

System_CAPS_pubclassCodeBinaryOperatorExpression

Represents an expression that consists of a binary operation between two expressions.

System_CAPS_pubclassCodeCastExpression

Represents an expression cast to a data type or interface.

System_CAPS_pubclassCodeCatchClause

Represents a catch exception block of a try/catch statement.

System_CAPS_pubclassCodeCatchClauseCollection

Represents a collection of CodeCatchClause objects.

System_CAPS_pubclassCodeChecksumPragma

Represents a code checksum pragma code entity.

System_CAPS_pubclassCodeComment

Represents a comment.

System_CAPS_pubclassCodeCommentStatement

Represents a statement consisting of a single comment.

System_CAPS_pubclassCodeCommentStatementCollection

Represents a collection of CodeCommentStatement objects.

System_CAPS_pubclassCodeCompileUnit

Provides a container for a CodeDOM program graph.

System_CAPS_pubclassCodeConditionStatement

Represents a conditional branch statement, typically represented as an if statement.

System_CAPS_pubclassCodeConstructor

Represents a declaration for an instance constructor of a type.

System_CAPS_pubclassCodeDefaultValueExpression

Represents a reference to a default value.

System_CAPS_pubclassCodeDelegateCreateExpression

Represents an expression that creates a delegate.

System_CAPS_pubclassCodeDelegateInvokeExpression

Represents an expression that raises an event.

System_CAPS_pubclassCodeDirectionExpression

Represents an expression used as a method invoke parameter along with a reference direction indicator.

System_CAPS_pubclassCodeDirective

Serves as the base class for code directive classes.

System_CAPS_pubclassCodeDirectiveCollection

Represents a collection of CodeDirective objects.

System_CAPS_pubclassCodeEntryPointMethod

Represents the entry point method of an executable.

System_CAPS_pubclassCodeEventReferenceExpression

Represents a reference to an event.

System_CAPS_pubclassCodeExpression

Represents a code expression. This is a base class for other code expression objects that is never instantiated.

System_CAPS_pubclassCodeExpressionCollection

Represents a collection of CodeExpression objects.

System_CAPS_pubclassCodeExpressionStatement

Represents a statement that consists of a single expression.

System_CAPS_pubclassCodeFieldReferenceExpression

Represents a reference to a field.

System_CAPS_pubclassCodeGotoStatement

Represents a goto statement.

System_CAPS_pubclassCodeIndexerExpression

Represents a reference to an indexer property of an object.

System_CAPS_pubclassCodeIterationStatement

Represents a for statement, or a loop through a block of statements, using a test expression as a condition for continuing to loop.

System_CAPS_pubclassCodeLabeledStatement

Represents a labeled statement or a stand-alone label.

System_CAPS_pubclassCodeLinePragma

Represents a specific location within a specific file.

System_CAPS_pubclassCodeMemberEvent

Represents a declaration for an event of a type.

System_CAPS_pubclassCodeMemberField

Represents a declaration for a field of a type.

System_CAPS_pubclassCodeMemberMethod

Represents a declaration for a method of a type.

System_CAPS_pubclassCodeMemberProperty

Represents a declaration for a property of a type.

System_CAPS_pubclassCodeMethodInvokeExpression

Represents an expression that invokes a method.

System_CAPS_pubclassCodeMethodReferenceExpression

Represents a reference to a method.

System_CAPS_pubclassCodeMethodReturnStatement

Represents a return value statement.

System_CAPS_pubclassCodeNamespace

Represents a namespace declaration.

System_CAPS_pubclassCodeNamespaceCollection

Represents a collection of CodeNamespace objects.

System_CAPS_pubclassCodeNamespaceImport

Represents a namespace import directive that indicates a namespace to use.

System_CAPS_pubclassCodeNamespaceImportCollection

Represents a collection of CodeNamespaceImport objects.

System_CAPS_pubclassCodeObject

Provides a common base class for most Code Document Object Model (CodeDOM) objects.

System_CAPS_pubclassCodeObjectCreateExpression

Represents an expression that creates a new instance of a type.

System_CAPS_pubclassCodeParameterDeclarationExpression

Represents a parameter declaration for a method, property, or constructor.

System_CAPS_pubclassCodeParameterDeclarationExpressionCollection

Represents a collection of CodeParameterDeclarationExpression objects.

System_CAPS_pubclassCodePrimitiveExpression

Represents a primitive data type value.

System_CAPS_pubclassCodePropertyReferenceExpression

Represents a reference to the value of a property.

System_CAPS_pubclassCodePropertySetValueReferenceExpression

Represents the value argument of a property set method call within a property set method.

System_CAPS_pubclassCodeRegionDirective

Specifies the name and mode for a code region.

System_CAPS_pubclassCodeRemoveEventStatement

Represents a statement that removes an event handler.

System_CAPS_pubclassCodeSnippetCompileUnit

Represents a literal code fragment that can be compiled.

System_CAPS_pubclassCodeSnippetExpression

Represents a literal expression.

System_CAPS_pubclassCodeSnippetStatement

Represents a statement using a literal code fragment.

System_CAPS_pubclassCodeSnippetTypeMember

Represents a member of a type using a literal code fragment.

System_CAPS_pubclassCodeStatement

Represents the abstract base class from which all code statements derive.

System_CAPS_pubclassCodeStatementCollection

Represents a collection of CodeStatement objects.

System_CAPS_pubclassCodeThisReferenceExpression

Represents a reference to the current local class instance.

System_CAPS_pubclassCodeThrowExceptionStatement

Represents a statement that throws an exception.

System_CAPS_pubclassCodeTryCatchFinallyStatement

Represents a try block with any number of catch clauses and, optionally, a finally block.

System_CAPS_pubclassCodeTypeConstructor

Represents a static constructor for a class.

System_CAPS_pubclassCodeTypeDeclaration

Represents a type declaration for a class, structure, interface, or enumeration.

System_CAPS_pubclassCodeTypeDeclarationCollection

Represents a collection of CodeTypeDeclaration objects.

System_CAPS_pubclassCodeTypeDelegate

Represents a delegate declaration.

System_CAPS_pubclassCodeTypeMember

Provides a base class for a member of a type. Type members include fields, methods, properties, constructors and nested types.

System_CAPS_pubclassCodeTypeMemberCollection

Represents a collection of CodeTypeMember objects.

System_CAPS_pubclassCodeTypeOfExpression

Represents a typeof expression, an expression that returns a Type for a specified type name.

System_CAPS_pubclassCodeTypeParameter

Represents a type parameter of a generic type or method.

System_CAPS_pubclassCodeTypeParameterCollection

Represents a collection of CodeTypeParameter objects.

System_CAPS_pubclassCodeTypeReference

Represents a reference to a type.

System_CAPS_pubclassCodeTypeReferenceCollection

Represents a collection of CodeTypeReference objects.

System_CAPS_pubclassCodeTypeReferenceExpression

Represents a reference to a data type.

System_CAPS_pubclassCodeVariableDeclarationStatement

Represents a variable declaration.

System_CAPS_pubclassCodeVariableReferenceExpression

Represents a reference to a local variable.

EnumerationDescription
System_CAPS_pubenumCodeBinaryOperatorType

Defines identifiers for supported binary operators.

System_CAPS_pubenumCodeRegionMode

Specifies the start or end of a code region.

System_CAPS_pubenumCodeTypeReferenceOptions

Specifies how the code type reference is to be resolved.

System_CAPS_pubenumFieldDirection

Defines identifiers used to indicate the direction of parameter and argument declarations.

System_CAPS_pubenumMemberAttributes

Defines member attribute identifiers for class members.

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.

Return to top
Show:
© 2016 Microsoft