HttpMethodMetadata Class
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.
Represents HTTP method metadata used during routing.
public ref class HttpMethodMetadata sealed : Microsoft::AspNetCore::Routing::IHttpMethodMetadata
public sealed class HttpMethodMetadata : Microsoft.AspNetCore.Routing.IHttpMethodMetadata
type HttpMethodMetadata = class
interface IHttpMethodMetadata
Public NotInheritable Class HttpMethodMetadata
Implements IHttpMethodMetadata
- Inheritance
-
HttpMethodMetadata
- Implements
Constructors
HttpMethodMetadata(IEnumerable<String>) |
Initializes a new instance of the HttpMethodMetadata class. |
HttpMethodMetadata(IEnumerable<String>, Boolean) |
Initializes a new instance of the HttpMethodMetadata class. |
Properties
AcceptCorsPreflight |
Returns a value indicating whether the associated endpoint should accept CORS preflight requests. |
HttpMethods |
Returns a read-only collection of HTTP methods used during routing. An empty collection means any HTTP method will be accepted. |
Methods
ToString() | Returns a string that represents the current object. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för