SaaS CMS has officially launched! Learn more now.

Class WorkflowFileSystemEventArgs

Used in communication between host and Workflow activitys. Represents an File or Directory related event.

Inheritance
System.Object
WorkflowFileSystemEventArgs
Namespace: EPiServer.WorkflowFoundation.Activities
Assembly: EPiServer.WorkflowFoundation.dll
Version: 7.19.2
Syntax
public class WorkflowFileSystemEventArgs : ExternalDataEventArgs

Constructors

WorkflowFileSystemEventArgs(WorkflowFileSystemEvent, Boolean, String, String, Guid)

Initializes a new instance of the WorkflowFileSystemEventArgs class.

Declaration
public WorkflowFileSystemEventArgs(WorkflowFileSystemEvent eventType, bool isFile, string path, string newPath, Guid workflowInstanceId)
Parameters
Type Name Description
WorkflowFileSystemEvent eventType

Type of the event.

System.Boolean isFile

if set to true [is file].

System.String path

The previous path for the File/Directory

System.String newPath

The new path for the File/Directory.

System.Guid workflowInstanceId

The workflow instance id.

Properties

EventType

Gets the type of the file system related event.

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

The type of the event.

IsFile

Gets a value indicating whether this event is File or Directory related.

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

true if this instance is file related; otherwise, false.

NewVirtualPath

Gets the new path for the file or directory

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

The new path.

Remarks

This is only meaningful for some events e.g. OnFileMoved

VirtualPath

Gets the path for the file or directory

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

The path.

Extension Methods