AcceptsMetadata Class

Definition

Metadata that specifies the supported request content types.

public sealed class AcceptsMetadata : Microsoft.AspNetCore.Http.Metadata.IAcceptsMetadata
type AcceptsMetadata = class
    interface IAcceptsMetadata
Public NotInheritable Class AcceptsMetadata
Implements IAcceptsMetadata
Inheritance
AcceptsMetadata
Implements

Constructors

AcceptsMetadata(String[], Type, Boolean)

Creates a new instance of AcceptsMetadata with a type.

Properties

ContentTypes

Gets the supported request content types.

IsOptional

Gets a value that determines if the request body is optional.

RequestType

Gets the type being read from the request.

Methods

ToString()

Returns a string that represents the current object.

Applies to