Try our conversational search powered by Generative AI!

Class UnifiedVirtualPathEventArgs

Class used for file action events.

Inheritance
System.Object
System.EventArgs
UnifiedVirtualPathEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Hosting
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class UnifiedVirtualPathEventArgs : EventArgs

Constructors

UnifiedVirtualPathEventArgs(String, String)

File event from EPiServer UI constructor.

Declaration
public UnifiedVirtualPathEventArgs(string newVirtualPath, string virtualPath)
Parameters
Type Name Description
System.String newVirtualPath
System.String virtualPath

Properties

Cancel

Gets or sets a value indicating whether the operation should be cancelled.

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

true if cancel; otherwise, false.

NewVirtualPath

Gets or sets the new virtual path.

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

The new virtual path.

Remarks

This can be used to assign the new filename/foldername but can not be used to change destination directory

Reason

Gets or sets the reason for the cancel of the operation

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

The cancel reason.

VirtualPath

Gets or sets the previous virtual path.

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

The virtual path.

Extension Methods