See Also: CompilerInfo Members
Use the System.CodeDom.Compiler.CompilerInfo class to determine whether a System.CodeDom.Compiler.CodeDomProvider implementation is configured on the computer, or to examine the configuration and compiler settings for a specific language provider.
The <system.codedom> Element in the machine configuration file contains the language provider and compiler configuration settings. Each configured language provider has a corresponding compiler configuration element. Each element defines the System.CodeDom.Compiler.CodeDomProvider implementation type, supported language names, supported file name extensions, and compiler parameters.
The .NET Framework defines the initial compiler settings in the machine configuration file. Developers and compiler vendors can add configuration settings for a new System.CodeDom.Compiler.CodeDomProvider implementation.
The System.CodeDom.Compiler.CompilerInfo class provides read-only access to these settings in the machine configuration file. Use the CompilerInfo.GetLanguages, CompilerInfo.GetExtensions, and CompilerInfo.CodeDomProviderType members to examine the corresponding configuration attributes for a language provider. Use the CompilerInfo.CreateDefaultCompilerParameters method to obtain the compiler options and warning level attribute values for a language provider.
For more details on language provider settings in the configuration file, see Compiler and Language Provider Settings Schema.
This class contains a link demand at the class level that applies to all members. A System.Security.SecurityException is thrown when the immediate caller does not have full-trust permission. For details about link demands, see Link Demands.