CompilerInfo::CreateProvider Method (IDictionary<String^, String^>^)

.NET Framework (current version)
 

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

Namespace:   System.CodeDom.Compiler
Assembly:  System (in System.dll)

public:
CodeDomProvider^ CreateProvider(
	IDictionary<String^, String^>^ providerOptions
)

Parameters

providerOptions
Type: System.Collections.Generic::IDictionary<String^, String^>^

A collection of provider options from the configuration file.

Return Value

Type: System.CodeDom.Compiler::CodeDomProvider^

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

Exception Condition
ArgumentNullException

providerOptions is null.

InvalidOperationException

The provider does not support options.

The CreateProvider(IDictionary<String^, String^>^) method returns a 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 CreateProvider(IDictionary<String^, String^>^) method to get a CodeDomProvider implementation for a CompilerInfo instance returned by the CodeDomProvider::GetAllCompilerInfo or CodeDomProvider::GetCompilerInfo method.

.NET Framework
Available since 4.0
Return to top
Show: