CodeDomDocDataAdapter Class

 
clsCompliantAlternativeNone

Maintains a cached T: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 T:Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.DocData object.

Namespace:   Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

System.Object
  Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter

[CLSCompliantAttribute(false)]
public class CodeDomDocDataAdapter : IDisposable

NameDescription
System_CAPS_pubmethodCodeDomDocDataAdapter(IServiceProvider, DocData)

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

NameDescription
System_CAPS_pubpropertyCompileUnit

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

System_CAPS_pubpropertyDocData

Gets the associated document data.

System_CAPS_pubpropertyGenerator

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

System_CAPS_protpropertyParser

Gets the code parser.

System_CAPS_pubpropertyProvider

Gets the code DOM provider for the file.

System_CAPS_pubpropertyTypeDeclaration

Gets the code type declaration for this document.

System_CAPS_pubpropertyTypeNamespace

Gets the code namespace for this document.

NameDescription
System_CAPS_pubmethodDispose()

Disposes this object.

System_CAPS_protmethodDispose(Boolean)

Disposes the resources of this object.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGenerate()

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

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetService(Type)

Gets the service of the specified type.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnCodeDomChanged(EventArgs)

Called when the code has changed externally.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventCodeDomChanged

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: