ClientBuildManager.GetCompilerParameters 方法

定義

回傳編譯器類型與用於建立以虛擬路徑表示檔案的參數。

public:
 void GetCompilerParameters(System::String ^ virtualPath, [Runtime::InteropServices::Out] Type ^ % codeDomProviderType, [Runtime::InteropServices::Out] System::CodeDom::Compiler::CompilerParameters ^ % compilerParameters);
public void GetCompilerParameters(string virtualPath, out Type codeDomProviderType, out System.CodeDom.Compiler.CompilerParameters compilerParameters);
member this.GetCompilerParameters : string * Type * CompilerParameters -> unit
Public Sub GetCompilerParameters (virtualPath As String, ByRef codeDomProviderType As Type, ByRef compilerParameters As CompilerParameters)

參數

virtualPath
String

檔案的虛擬路徑。

codeDomProviderType
Type

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

compilerParameters
CompilerParameters

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

例外狀況

virtualPath 為 null。

適用於

另請參閱