ClientBuildManager.GetCompilerParameters 方法

定義

傳回編譯器型別和參數,用來建置由虛擬路徑表示的檔案。

C#
public void GetCompilerParameters(string virtualPath, out Type codeDomProviderType, out System.CodeDom.Compiler.CompilerParameters compilerParameters);

參數

virtualPath
String

檔案的虛擬路徑。

codeDomProviderType
Type

這個方法傳回時,包含用於程式碼產生和編譯的提供者類型。

compilerParameters
CompilerParameters

這個方法傳回時,包含定義如何編譯檔案的屬性。

例外狀況

virtualPath 為 null。

適用於

產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

另請參閱