共用方式為


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

相對於應用程式基底的檔案路徑。

適用於