ViewContext.ExecutingFilePath Property

Definition

Gets or sets the path of the view file currently being rendered.

public:
 property System::String ^ ExecutingFilePath { System::String ^ get(); void set(System::String ^ value); };
public string ExecutingFilePath { get; set; }
public string? ExecutingFilePath { get; set; }
member this.ExecutingFilePath : string with get, set
Public Property ExecutingFilePath As String

Property Value

Remarks

The rendering of a view may involve one or more files (e.g. _ViewStart, Layouts etc). This property contains the path of the file currently being rendered.

Applies to