RelativeFileInfo(IFileInfo, String) 构造函数

定义

初始化 RelativeFileInfo 的新实例。

public:
 RelativeFileInfo(Microsoft::Extensions::FileProviders::IFileInfo ^ fileInfo, System::String ^ relativePath);
public RelativeFileInfo (Microsoft.Extensions.FileProviders.IFileInfo fileInfo, string relativePath);
new Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo : Microsoft.Extensions.FileProviders.IFileInfo * string -> Microsoft.AspNetCore.Mvc.Razor.Compilation.RelativeFileInfo
Public Sub New (fileInfo As IFileInfo, relativePath As String)

参数

fileInfo
IFileInfo

IFileInfo 文件。

relativePath
String

相对于应用程序基础的文件的路径。

适用于