This documentation is archived and is not being maintained.

CodeDomDesignerLoader Class

Provides the base class for implementing a CodeDOM-based designer loader.

Namespace:  System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public abstract class CodeDomDesignerLoader : BasicDesignerLoader, 
	INameCreationService, IDesignerSerializationService

The CodeDomDesignerLoader type exposes the following members.

Protected methodCodeDomDesignerLoaderInitializes a new instance of the CodeDomDesignerLoader class.

Protected propertyCodeDomProviderGets the CodeDomProvider this designer loader will use.
Protected propertyLoaderHostGets the loader host. (Inherited from BasicDesignerLoader.)
Public propertyLoadingGets a value indicating whether the designer loader is loading the design surface. (Inherited from BasicDesignerLoader.)
Protected propertyModifiedGets or sets a value indicating whether the designer has been modified. (Inherited from BasicDesignerLoader.)
Protected propertyPropertyProviderGets or sets the property provider for the serialization manager being used by the loader. (Inherited from BasicDesignerLoader.)
Protected propertyReloadPendingGets a value indicating whether a reload has been queued. (Inherited from BasicDesignerLoader.)
Protected propertyTypeResolutionServiceGets the type resolution service to be used with this designer loader.

Public methodBeginLoadStarts the loading process. (Inherited from BasicDesignerLoader.)
Public methodDisposeReleases the resources used by the CodeDomDesignerLoader class. (Overrides BasicDesignerLoader.Dispose().)
Protected methodEnableComponentNotificationEnables or disables component notification with the DesignerLoader. (Inherited from BasicDesignerLoader.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFlushFlushes pending changes to the designer loader. (Inherited from BasicDesignerLoader.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Protected methodGetServiceGets the requested service. (Inherited from BasicDesignerLoader.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitializeInitializes services. (Overrides BasicDesignerLoader.Initialize().)
Protected methodIsReloadNeededReturns a value indicating whether a reload is required. (Overrides BasicDesignerLoader.IsReloadNeeded().)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnBeginLoadNotifies the designer loader that loading is about to begin. (Overrides BasicDesignerLoader.OnBeginLoad().)
Protected methodOnBeginUnloadNotifies the designer loader that unloading is about to begin. (Overrides BasicDesignerLoader.OnBeginUnload().)
Protected methodOnComponentRenameRaises the ComponentRename event.
Protected methodOnEndLoadNotifies the designer loader that loading is complete. (Overrides BasicDesignerLoader.OnEndLoad(Boolean, ICollection).)
Protected methodOnModifyingNotifies the designer loader that the state of the document is about to be modified. (Inherited from BasicDesignerLoader.)
Protected methodParseParses the text or other persistent storage and returns a CodeCompileUnit.
Protected methodPerformFlushRequests serialization of the root component of the designer. (Overrides BasicDesignerLoader.PerformFlush(IDesignerSerializationManager).)
Protected methodPerformLoadParses code from a CodeDOM provider. (Overrides BasicDesignerLoader.PerformLoad(IDesignerSerializationManager).)
Protected methodReloadQueues a reload of the designer. (Inherited from BasicDesignerLoader.)
Protected methodReportFlushErrorsReports errors that occurred while flushing changes. (Inherited from BasicDesignerLoader.)
Protected methodSetBaseComponentClassNameSets the full class name of the base component. (Inherited from BasicDesignerLoader.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodWriteWrites compile-unit changes to persistent storage.

Explicit interface implemetationPrivate methodIDesignerLoaderService.AddLoadDependencyRegisters an external component as part of the load process managed by IDesignerLoaderService. (Inherited from BasicDesignerLoader.)
Explicit interface implemetationPrivate methodIDesignerLoaderService.DependentLoadCompleteSignals that a dependent load has finished. (Inherited from BasicDesignerLoader.)
Explicit interface implemetationPrivate methodIDesignerLoaderService.ReloadReloads the design document. (Inherited from BasicDesignerLoader.)
Explicit interface implemetationPrivate methodIDesignerSerializationService.DeserializeDeserializes the specified serialization data object and returns a collection of objects represented by that data.
Explicit interface implemetationPrivate methodIDesignerSerializationService.SerializeSerializes the specified collection of objects and stores them in a serialization data object.
Explicit interface implemetationPrivate methodINameCreationService.CreateNameCreates a new name that is unique to all components in the specified container.
Explicit interface implemetationPrivate methodINameCreationService.IsValidNameGets a value indicating whether the specified name is valid.
Explicit interface implemetationPrivate methodINameCreationService.ValidateNameGets a value indicating whether the specified name is valid.

CodeDomDesignerLoader is an abstract class that provides a full designer loader based on the Code Document Object Model (CodeDOM). You provide the CodeDOM parser and generator, and a type resolution service.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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