Compartilhar via


CodeDomDocDataAdapter Class

Definition

Important

This API is not CLS-compliant.

Maintains a cached System.CodeDom.Namespace.CodeTypeDeclaration that objects may use to access the code DOM indirectly. Since multiple objects may be working on the code DOM tree for the design surface at a given time, they could overwrite each other's changes if they all accessed the code DOM tree directly. In addition, this class has several properties that expose the CodeDomProvider, and contains a reference to the actual Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.DocData object.

public ref class CodeDomDocDataAdapter : IDisposable
[System.CLSCompliant(false)]
public class CodeDomDocDataAdapter : IDisposable
public class CodeDomDocDataAdapter : IDisposable
[<System.CLSCompliant(false)>]
type CodeDomDocDataAdapter = class
    interface IDisposable
type CodeDomDocDataAdapter = class
    interface IDisposable
Public Class CodeDomDocDataAdapter
Implements IDisposable
Inheritance
CodeDomDocDataAdapter
Attributes
Implements

Constructors

CodeDomDocDataAdapter(IServiceProvider, DocData)

Initializes a new instance of CodeDomDocDataAdapter for the specified DocData object.

Properties

CompileUnit

Gets the entire compile unit in which the document data exists.

DocData

Gets the associated document data.

Generator

Gets a cached code generator that may be used to validate identifiers and generate code.

Parser

Gets the code parser.

Provider

Gets the code DOM provider for the file.

TypeDeclaration

Gets the code type declaration for this document.

TypeNamespace

Gets the code namespace for this document.

Methods

Dispose()

Disposes this object.

Dispose(Boolean)

Disposes the resources of this object.

Generate()

Takes the current type declaration and generates it into the doc data.

GetService(Type)

Gets the service of the specified type.

OnCodeDomChanged(EventArgs)

Called when the code has changed externally.

Events

CodeDomChanged

This event is raised when an external party has made a change to the code file that would cause the code DOM to need rebuilding.

Applies to