System.CodeDom.Compiler.CompilerInfo.CreateProvider Method

Returns a System.CodeDom.Compiler.CodeDomProvider instance for the current language provider settings and specified options.

Syntax

public CodeDomProvider CreateProvider (IDictionary<string, string> providerOptions)

Parameters

providerOptions
A collection of provider options from the configuration file.

Returns

A CodeDOM provider associated with the language provider configuration and specified options.

Remarks

The CompilerInfo.CreateProvider(IDictionary<string, string>) method returns a System.CodeDom.Compiler.CodeDomProvider instance for the current language provider settings and the specified provider options. For information about supported provider options, see the specific CodeDOM provider documentation.

Use the CompilerInfo.CreateProvider(IDictionary<string, string>) method to get a System.CodeDom.Compiler.CodeDomProvider implementation for a System.CodeDom.Compiler.CompilerInfo instance returned by the CodeDomProvider.GetAllCompilerInfo or CodeDomProvider.GetCompilerInfo(string) method.

Requirements

Namespace: System.CodeDom.Compiler
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0
Since: .NET 2.0