BuildManager.GetCompiledCustomString(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據檔案的虛擬路徑編譯,並回傳一個自訂字串,建置提供者會持久化於快取中。
public:
static System::String ^ GetCompiledCustomString(System::String ^ virtualPath);
public static string GetCompiledCustomString(string virtualPath);
static member GetCompiledCustomString : string -> string
Public Shared Function GetCompiledCustomString (virtualPath As String) As String
參數
- virtualPath
- String
檔案建立的虛擬路徑。
傳回
一個由方法回傳 GetCustomString(CompilerResults) 的字串,會快取到磁碟或記憶體。