CorsPolicyMetadata(CorsPolicy) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of CorsPolicyMetadata using the specified policy.
public:
CorsPolicyMetadata(Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicy ^ policy);
public CorsPolicyMetadata (Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy);
new Microsoft.AspNetCore.Cors.CorsPolicyMetadata : Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy -> Microsoft.AspNetCore.Cors.CorsPolicyMetadata
Public Sub New (policy As CorsPolicy)
Parameters
- policy
- CorsPolicy
The policy which needs to be applied.