CorsHttpConfigurationExtensions.SetCorsEngine Method (HttpConfiguration, ICorsEngine)
Sets the ICorsEngine on the HttpConfiguration.
Namespace: System.Web.Http
Assembly: System.Web.Http.Cors (in System.Web.Http.Cors.dll)
Syntax
public static void SetCorsEngine(
this HttpConfiguration httpConfiguration,
ICorsEngine corsEngine
)
public:
[ExtensionAttribute]
static void SetCorsEngine(
HttpConfiguration^ httpConfiguration,
ICorsEngine^ corsEngine
)
static member SetCorsEngine :
httpConfiguration:HttpConfiguration *
corsEngine:ICorsEngine -> unit
<ExtensionAttribute>
Public Shared Sub SetCorsEngine (
httpConfiguration As HttpConfiguration,
corsEngine As ICorsEngine
)
Parameters
httpConfiguration
Type: System.Web.Http.HttpConfigurationThe HttpConfiguration.
corsEngine
Type: System.Web.Cors.ICorsEngineThe ICorsEngine.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | httpConfiguration or corsEngine |
See Also
CorsHttpConfigurationExtensions Class
System.Web.Http Namespace
Return to top