ViewContext.ExecutingFilePath Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.