編集

次の方法で共有


WorkflowDesignerLoader Class

Definition

Caution

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

Provides common designer loader functionality that can be used to implement custom workflow designer loaders.

public ref class WorkflowDesignerLoader abstract : System::ComponentModel::Design::Serialization::BasicDesignerLoader
public abstract class WorkflowDesignerLoader : System.ComponentModel.Design.Serialization.BasicDesignerLoader
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public abstract class WorkflowDesignerLoader : System.ComponentModel.Design.Serialization.BasicDesignerLoader
type WorkflowDesignerLoader = class
    inherit BasicDesignerLoader
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type WorkflowDesignerLoader = class
    inherit BasicDesignerLoader
Public MustInherit Class WorkflowDesignerLoader
Inherits BasicDesignerLoader
Inheritance
WorkflowDesignerLoader
Attributes

Remarks

Note

This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

Designer loader classes are used to load the designer and save any changes to the state of the designer when the user so instructs. The WorkflowDesignerLoader class can be implemented to support custom loading of a workflow designer and workflow designer components. A workflow designer loader is also responsible for writing changes to an open document back to the storage the loader used when loading the document after the Flush method is called.

Notes to Implementers

When you inherit from WorkflowDesignerLoader, you must override the following members: FileName, ForceReload(), GetFileReader(String) and GetFileWriter(String).

Constructors

WorkflowDesignerLoader()

When implemented in a derived class, initializes a new instance of the WorkflowDesignerLoader class.

Properties

FileName

When overridden in a derived class, gets the file name of the designer to load.

InDebugMode

Gets a value that indicates whether the workflow should be loaded in debug mode.

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)
TargetFrameworkTypeDescriptionProvider

Gets the TypeDescriptor metadata of the target .NET Framework.

Methods

AddActivityToDesigner(Activity)

Adds an activity to the designer host after it has been added to the parent activities collection.

BeginLoad(IDesignerLoaderHost)

Starts the loading process.

(Inherited from BasicDesignerLoader)
Dispose()

Releases all resources used by the WorkflowDesignerLoader.

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()

Writes pending changes to the location that the designer was loaded from.

ForceReload()

When overridden in a derived class, causes WorkflowDesignerLoader to reload the designer.

GetFileReader(String)

When overridden in a derived class, retrieves an object that WorkflowDesignerLoader uses to read from the specified file.

GetFileWriter(String)

When overridden in a derived class, gets an object that the WorkflowDesignerLoader uses to write to the specified file.

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 the WorkflowDesignerLoader with any services required by the designer loader host.

IsReloadNeeded()

Indicates whether the designer should be reloaded.

(Inherited from BasicDesignerLoader)
LoadDesignerLayout(XmlReader, IList)

Applies the serialized layout to the root designer in the current designer host.

LoadDesignerLayoutFromResource(Type, String, IList)

Retrieves the specified resource and calls the LoadDesignerLayout(XmlReader, IList) method that applies the serialized layout to the root designer in the current designer host.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnBeginLoad()

Notifies the designer loader that loading is about to begin.

(Inherited from BasicDesignerLoader)
OnBeginUnload()

Notifies the designer loader that unloading is about to begin.

(Inherited from BasicDesignerLoader)
OnEndLoad(Boolean, ICollection)

Called when loading of the designer is completed.

OnModifying()

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

(Inherited from BasicDesignerLoader)
PerformFlush(IDesignerSerializationManager)

Writes cached changes to the location that the designer was loaded from.

PerformLoad(IDesignerSerializationManager)

Loads the designer from a design document.

Reload(BasicDesignerLoader+ReloadOptions)

Queues a reload of the designer.

(Inherited from BasicDesignerLoader)
RemoveActivityFromDesigner(Activity)

Removes an activity from the designer host after it has been added to the parent activities collection.

ReportFlushErrors(ICollection)

Reports errors that occurred while flushing changes.

(Inherited from BasicDesignerLoader)
SaveDesignerLayout(XmlWriter, ActivityDesigner, IList)

Serializes the designer layout.

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)

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)

Applies to