System.CodeDom.Compiler.CodeDomProvider.IsDefinedLanguage Method

Tests whether a language has a System.CodeDom.Compiler.CodeDomProvider implementation configured on the computer.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public static bool IsDefinedLanguage (string language)

Parameters

language
The language name.

Returns

true if a System.CodeDom.Compiler.CodeDomProvider implementation is configured for the specified language; otherwise, false.

Remarks

The <system.codedom> in the machine configuration file (Machine.config) contains the language provider and compiler configuration settings for each System.CodeDom.Compiler.CodeDomProvider implementation on the computer. The CodeDomProvider.IsDefinedLanguage(string) method searches the provider configuration elements for the specified language name.

Language names are case-insensitive.

Requirements

Namespace: System.CodeDom.Compiler
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0