BindingSource Class

Definition

A metadata object representing a source of data for model binding.

public ref class BindingSource : IEquatable<Microsoft::AspNetCore::Mvc::ModelBinding::BindingSource ^>
public class BindingSource : IEquatable<Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource>
type BindingSource = class
    interface IEquatable<BindingSource>
Public Class BindingSource
Implements IEquatable(Of BindingSource)
Inheritance
BindingSource
Derived
Implements

Constructors

BindingSource(String, String, Boolean, Boolean)

Creates a new BindingSource.

Fields

Body

A BindingSource for the request body.

Custom

A BindingSource for a custom model binder (unknown data source).

Form

A BindingSource for the request form-data.

FormFile

A BindingSource for IFormFile, IFormCollection, and IFormFileCollection.

Header

A BindingSource for the request headers.

ModelBinding

A BindingSource for model binding. Includes form-data, query-string and route data from the request.

Path

A BindingSource for the request url path.

Query

A BindingSource for the request query-string.

Services

A BindingSource for request services.

Special

A BindingSource for special parameter types that are not user input.

Properties

DisplayName

Gets the display name for the source.

Id

Gets the unique identifier for the source. Sources are compared based on their Id.

IsFromRequest

Gets a value indicating whether or not the binding source uses input from the current HTTP request.

IsGreedy

Gets a value indicating whether or not a source is greedy. A greedy source will bind a model in a single operation, and will not decompose the model into sub-properties.

Methods

CanAcceptDataFrom(BindingSource)

Gets a value indicating whether or not the BindingSource can accept data from bindingSource.

Equals(BindingSource)
Equals(Object)
GetHashCode()

Operators

Equality(BindingSource, BindingSource)
Inequality(BindingSource, BindingSource)

Applies to