แก้ไข

แชร์ผ่าน


CodeDomDesignerLoader Class

Definition

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

public ref class CodeDomDesignerLoader abstract : System::ComponentModel::Design::Serialization::BasicDesignerLoader, System::ComponentModel::Design::Serialization::IDesignerSerializationService, System::ComponentModel::Design::Serialization::INameCreationService
public abstract class CodeDomDesignerLoader : System.ComponentModel.Design.Serialization.BasicDesignerLoader, System.ComponentModel.Design.Serialization.IDesignerSerializationService, System.ComponentModel.Design.Serialization.INameCreationService
[System.Security.SecurityCritical]
public abstract class CodeDomDesignerLoader : System.ComponentModel.Design.Serialization.BasicDesignerLoader, System.ComponentModel.Design.Serialization.IDesignerSerializationService, System.ComponentModel.Design.Serialization.INameCreationService
type CodeDomDesignerLoader = class
    inherit BasicDesignerLoader
    interface INameCreationService
    interface IDesignerSerializationService
[<System.Security.SecurityCritical>]
type CodeDomDesignerLoader = class
    inherit BasicDesignerLoader
    interface INameCreationService
    interface IDesignerSerializationService
Public MustInherit Class CodeDomDesignerLoader
Inherits BasicDesignerLoader
Implements IDesignerSerializationService, INameCreationService
Inheritance
CodeDomDesignerLoader
Attributes
Implements

Remarks

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.

Constructors

CodeDomDesignerLoader()

Initializes a new instance of the CodeDomDesignerLoader class.

Properties

CodeDomProvider

Gets the CodeDomProvider this designer loader will use.

LoaderHost

Gets the loader host.

(Inherited from BasicDesignerLoader)
Loading

Gets a value indicating whether the designer loader is loading the design surface.

(Inherited from BasicDesignerLoader)
Modified

Gets or sets a value indicating whether the designer has been modified.

(Inherited from BasicDesignerLoader)
PropertyProvider

Gets or sets the property provider for the serialization manager being used by the loader.

(Inherited from BasicDesignerLoader)
ReloadPending

Gets a value indicating whether a reload has been queued.

(Inherited from BasicDesignerLoader)
TypeResolutionService

Gets the type resolution service to be used with this designer loader.

Methods

BeginLoad(IDesignerLoaderHost)

Starts the loading process.

(Inherited from BasicDesignerLoader)
Dispose()

Releases the resources used by the CodeDomDesignerLoader class.

EnableComponentNotification(Boolean)

Enables or disables component notification with the DesignerLoader.

(Inherited from BasicDesignerLoader)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Flush()

Flushes pending changes to the designer loader.

(Inherited from BasicDesignerLoader)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetService(Type)

Gets the requested service.

(Inherited from BasicDesignerLoader)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize()

Initializes services.

IsReloadNeeded()

Returns a value indicating whether a reload is required.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnBeginLoad()

Notifies the designer loader that loading is about to begin.

OnBeginUnload()

Notifies the designer loader that unloading is about to begin.

OnComponentRename(Object, String, String)

Raises the ComponentRename event.

OnEndLoad(Boolean, ICollection)

Notifies the designer loader that loading is complete.

OnModifying()

Notifies the designer loader that the state of the document is about to be modified.

(Inherited from BasicDesignerLoader)
Parse()

Parses the text or other persistent storage and returns a CodeCompileUnit.

PerformFlush(IDesignerSerializationManager)

Requests serialization of the root component of the designer.

PerformLoad(IDesignerSerializationManager)

Parses code from a CodeDOM provider.

Reload(BasicDesignerLoader+ReloadOptions)

Queues a reload of the designer.

(Inherited from BasicDesignerLoader)
ReportFlushErrors(ICollection)

Reports errors that occurred while flushing changes.

(Inherited from BasicDesignerLoader)
SetBaseComponentClassName(String)

Sets the full class name of the base component.

(Inherited from BasicDesignerLoader)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
Write(CodeCompileUnit)

Writes compile-unit changes to persistent storage.

Explicit Interface Implementations

IDesignerLoaderService.AddLoadDependency()

Registers an external component as part of the load process managed by IDesignerLoaderService.

(Inherited from BasicDesignerLoader)
IDesignerLoaderService.DependentLoadComplete(Boolean, ICollection)

Signals that a dependent load has finished.

(Inherited from BasicDesignerLoader)
IDesignerLoaderService.Reload()

Reloads the design document.

(Inherited from BasicDesignerLoader)
IDesignerSerializationService.Deserialize(Object)

Deserializes the specified serialization data object and returns a collection of objects represented by that data.

IDesignerSerializationService.Serialize(ICollection)

Serializes the specified collection of objects and stores them in a serialization data object.

INameCreationService.CreateName(IContainer, Type)

Creates a new name that is unique to all components in the specified container.

INameCreationService.IsValidName(String)

Gets a value indicating whether the specified name is valid.

INameCreationService.ValidateName(String)

Gets a value indicating whether the specified name is valid.

Applies to

See also