CorsHttpConfigurationExtensions.GetCorsEngine Method (HttpConfiguration)
Gets the ICorsEngine from the HttpConfiguration.
Namespace: System.Web.Http
Assembly: System.Web.Http.Cors (in System.Web.Http.Cors.dll)
Syntax
public static ICorsEngine GetCorsEngine(
this HttpConfiguration httpConfiguration
)
public:
[ExtensionAttribute]
static ICorsEngine^ GetCorsEngine(
HttpConfiguration^ httpConfiguration
)
static member GetCorsEngine :
httpConfiguration:HttpConfiguration -> ICorsEngine
<ExtensionAttribute>
Public Shared Function GetCorsEngine (
httpConfiguration As HttpConfiguration
) As ICorsEngine
Parameters
httpConfiguration
Type: System.Web.Http.HttpConfigurationThe HttpConfiguration.
Return Value
Type: System.Web.Cors.ICorsEngine
The ICorsEngine.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | httpConfiguration |
See Also
CorsHttpConfigurationExtensions Class
System.Web.Http Namespace
Return to top