Share via


CorsHttpConfigurationExtensions.GetCorsPolicyProviderFactory Method (HttpConfiguration)

 

Gets the ICorsPolicyProviderFactory from the HttpConfiguration.

Namespace:   System.Web.Http
Assembly:  System.Web.Http.Cors (in System.Web.Http.Cors.dll)

Syntax

public static ICorsPolicyProviderFactory GetCorsPolicyProviderFactory(
    this HttpConfiguration httpConfiguration
)
public:
[ExtensionAttribute]
static ICorsPolicyProviderFactory^ GetCorsPolicyProviderFactory(
    HttpConfiguration^ httpConfiguration
)
static member GetCorsPolicyProviderFactory : 
        httpConfiguration:HttpConfiguration -> ICorsPolicyProviderFactory
<ExtensionAttribute>
Public Shared Function GetCorsPolicyProviderFactory (
    httpConfiguration As HttpConfiguration
) As ICorsPolicyProviderFactory

Parameters

Return Value

Type: System.Web.Http.Cors.ICorsPolicyProviderFactory

The ICorsPolicyProviderFactory.

Exceptions

Exception Condition
ArgumentNullException

httpConfiguration

See Also

CorsHttpConfigurationExtensions Class
System.Web.Http Namespace

Return to top