Compiler(String, String, String, String, Int32) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個初始化為所提供值的實例 Compiler 。
public:
Compiler(System::String ^ compilerOptions, System::String ^ extension, System::String ^ language, System::String ^ type, int warningLevel);
public Compiler(string compilerOptions, string extension, string language, string type, int warningLevel);
new System.Web.Configuration.Compiler : string * string * string * string * int -> System.Web.Configuration.Compiler
Public Sub New (compilerOptions As String, extension As String, language As String, type As String, warningLevel As Integer)
參數
- compilerOptions
- String
列出編譯過程中需通過的額外編譯器專用選項。
- extension
- String
提供一個以分號分隔的檔案名稱副檔名清單,用於動態程式碼背後的檔案。 例如,「.cs」。
- language
- String
提供動態編譯檔案中以分號分隔的語言清單。 例如,「c#;電腦科學;Csharp」。
- type
- String
指定一個逗號分隔的類別/組合組合,指示 .NET Framework 類別。
- warningLevel
- Int32
指定編譯器的警告等級。