SpaStaticFilesOptions.RootPath 属性

定义

获取或设置物理文件所在的目录相对于应用程序根目录的路径。

如果指定的目录不存在,则 UseSpaStaticFiles(IApplicationBuilder) 中间件不会提供任何静态文件。

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

属性值

适用于