CompilerInfo::CreateProvider Method (IDictionary<String^, String^>^)
Returns a CodeDomProvider instance for the current language provider settings and specified options.
Assembly: System (in System.dll)
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.
Available since 4.0