Compiler(String, String, String, String, Int32) Constructor

Definition

Creates an instance of a Compiler initialized to the provided values.

C#
public Compiler(string compilerOptions, string extension, string language, string type, int warningLevel);

Parameters

compilerOptions
String

Lists additional compiler-specific options to pass during compilation.

extension
String

Provides a semicolon-separated list of file-name extensions used for dynamic code-behind files. For example, ".cs".

language
String

Provides a semicolon-separated list of languages used in dynamic compilation files. For example, "c#;cs;csharp".

type
String

Specifies a comma-separated class/assembly combination that indicates the .NET Framework class.

warningLevel
Int32

Specifies compiler warning levels.

Applies to

Product Versions
.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