CorsHttpConfigurationExtensions::SetCorsEngine Method (HttpConfiguration^, ICorsEngine^)
Sets the ICorsEngine on the HttpConfiguration.
Assembly: System.Web.Http.Cors (in System.Web.Http.Cors.dll)
public: [ExtensionAttribute] static void SetCorsEngine( HttpConfiguration^ httpConfiguration, ICorsEngine^ corsEngine )
Parameters
- httpConfiguration
-
Type:
System.Web.Http::HttpConfiguration^
The HttpConfiguration.
- corsEngine
-
Type:
System.Web.Cors::ICorsEngine^
The ICorsEngine.
| Exception | Condition |
|---|---|
| ArgumentNullException | httpConfiguration or corsEngine |
Show: