Dela via


FormFeature Class

Definition

Default implementation for IFormFeature.

public ref class FormFeature : Microsoft::AspNetCore::Http::Features::IFormFeature
public class FormFeature : Microsoft.AspNetCore.Http.Features.IFormFeature
type FormFeature = class
    interface IFormFeature
Public Class FormFeature
Implements IFormFeature
Inheritance
FormFeature
Implements

Constructors

FormFeature(HttpRequest, FormOptions)

Initializes a new instance of FormFeature.

FormFeature(HttpRequest)

Initializes a new instance of FormFeature.

FormFeature(IFormCollection)

Initializes a new instance of FormFeature.

Properties

Form

Gets or sets the parsed form.

This API will return a non-null value if the request body was read using ReadFormAsync(CancellationToken) or ReadForm(), or if a value was explicitly assigned.

HasFormContentType

Indicates if the request has a supported form content-type.

Methods

ReadForm()

Parses the request body as a form.

If the request body has not been previously read, this API performs a synchronous (blocking) read on the HTTP input stream which may be unsupported or can adversely affect application performance. Consider using ReadFormAsync(CancellationToken) instead.

ReadFormAsync() System.Object.ReadFormAsync
ReadFormAsync(CancellationToken)

Parses the request body as a form.

Applies to