Class FileEventBase<T>

The base class which all FileSystem related event activities derives from

Namespace: EPiServer.WorkflowFoundation.Activities
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0
Syntax
public abstract class FileEventBase<T> : EventBase where T : FileEventBase<T>
Type Parameters
Name Description
T

The UnifiedFile event related activity

Constructors

FileEventBase(Type, String, String)

Initializes a new instance of the FileEventBase<T> class.

Declaration
protected FileEventBase(Type interfaceType, string eventName, string description)
Parameters
Type Name Description
System.Type interfaceType

Type of the interface.

System.String eventName

Name of the event.

System.String description

The description.

Fields

EventTypeProperty

EventType as a dependency property to make it avilable for databinding

Declaration
public static DependencyProperty EventTypeProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

IsFileProperty

Registers IsFile as a dependency property to make it avilable for databinding

Declaration
public static DependencyProperty IsFileProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

NewVirtualPathProperty

Registers OldPath as a dependency property to make it avilable for databinding

Declaration
public static DependencyProperty NewVirtualPathProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

VirtualPathProperty

Registers Path as a dependency property to make it avilable for databinding

Declaration
public static DependencyProperty VirtualPathProperty
Field Value
Type Description
System.Workflow.ComponentModel.DependencyProperty

Properties

EventType

The event type that caused this event

Declaration
public WorkflowFileSystemEvent EventType { get; }
Property Value
Type Description
WorkflowFileSystemEvent

IsFile

Indicates if this event is file or directory related

Declaration
public bool IsFile { get; }
Property Value
Type Description
System.Boolean

NewVirtualPath

The new virtual path for the file system item

Declaration
public string NewVirtualPath { get; }
Property Value
Type Description
System.String
Remarks

This is only set for some events, i.e. FileCopied

VirtualPath

The virtual path for the file system item

Declaration
public string VirtualPath { get; }
Property Value
Type Description
System.String

Methods

OnInvoked(EventArgs)

Called just after the external event is received to allow subclasses to process the inbound System.EventArgs before the activity closes.

Declaration
protected override void OnInvoked(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

The System.EventArgs that are received from the external event that was just received.