共用方式為


MigrationsScaffolder.TryGetProjectFile(String, String) 方法

定義

嘗試在專案目錄下尋找檔案。

protected virtual string TryGetProjectFile (string projectDir, string fileName);
protected virtual string? TryGetProjectFile (string projectDir, string fileName);
abstract member TryGetProjectFile : string * string -> string
override this.TryGetProjectFile : string * string -> string
Protected Overridable Function TryGetProjectFile (projectDir As String, fileName As String) As String

參數

projectDir
String

專案目錄。

fileName
String

檔案名稱。

傳回

如果沒有,則為檔案路徑或 null。

適用於