Megosztás a következőn keresztül:


Microsoft.AspNetCore.Mvc.ModelBinding Namespace

Provides contracts types required to support model binders.

Classes

BindingBehaviorAttribute

Specifies the BindingBehavior that should be applied.

BindingInfo

Binding info which represents metadata associated to an action parameter.

BindingSource

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

BindingSourceValueProvider

A value provider which provides data from a specific BindingSource.

BindNeverAttribute

Indicates that a property should be excluded from model binding. When applied to a property, the model binding system excludes that property. When applied to a type, the model binding system excludes all properties that type defines.

BindRequiredAttribute

Indicates that a property is required for model binding. When applied to a property, the model binding system requires a value for that property. When applied to a type, the model binding system requires values for all properties that type defines.

CompositeBindingSource

A BindingSources which can represent multiple value-provider data sources.

CompositeValueProvider

Represents a IValueProvider whose values come from a collection of IValueProviders.

DefaultModelBindingContext

A context that contains operating information for model binding and validation.

DefaultPropertyFilterProvider<TModel>

Default implementation for IPropertyFilterProvider. Provides a expression based way to provide include properties.

EmptyModelMetadataProvider

A Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.DefaultBindingMetadataProvider that represents an empty model.

FormFileValueProvider

An IValueProvider adapter for data stored in an IFormFileCollection.

FormFileValueProviderFactory

A IValueProviderFactory for FormValueProvider.

FormValueProvider

An IValueProvider adapter for data stored in an IFormCollection.

FormValueProviderFactory

A IValueProviderFactory for FormValueProvider.

JQueryFormValueProvider

An IValueProvider for jQuery formatted form data.

JQueryFormValueProviderFactory

An IValueProviderFactory for JQueryFormValueProvider.

JQueryQueryStringValueProvider

An IValueProvider for jQuery formatted query string data.

JQueryQueryStringValueProviderFactory

An IValueProviderFactory for JQueryQueryStringValueProvider.

JQueryValueProvider

An IValueProvider for jQuery formatted data.

ModelAttributes

Provides access to the combined list of attributes associated with a Type, property, or parameter.

ModelBinderFactory

A factory for IModelBinder instances.

ModelBinderFactoryContext

A context object for CreateBinder(ModelBinderFactoryContext).

ModelBinderProviderContext

A context object for GetBinder(ModelBinderProviderContext).

ModelBinderProviderExtensions

Extension methods for IModelBinderProvider.

ModelBindingContext

A context that contains operating information for model binding and validation.

ModelError

An error that occurred during model binding and validation.

ModelErrorCollection

A collection of ModelError instances.

ModelMetadata

A metadata representation of a model type, property or parameter.

ModelMetadataProvider

A provider that can supply instances of ModelMetadata.

ModelMetadataProviderExtensions

Extensions methods for IModelMetadataProvider.

ModelNames

Static class for helpers dealing with model names.

ModelPropertyCollection

A read-only collection of ModelMetadata objects which represent model properties.

ModelStateDictionary

Represents the state of an attempt to bind values from an HTTP Request to an action method, which includes validation information.

ModelStateDictionaryExtensions

Extensions methods for ModelStateDictionary.

ModelStateEntry

An entry in a ModelStateDictionary.

ObjectModelValidator

Provides a base IObjectModelValidator implementation for validating an object graph.

ParameterBinder

Binds and validates models specified by a ParameterDescriptor.

PrefixContainer

This is a container for prefix values. It normalizes all the values into dotted-form and then stores them in a sorted array. All queries for prefixes are also normalized to dotted-form, and searches for ContainsPrefix are done with a binary search.

QueryStringValueProvider

An IValueProvider adapter for data stored in an IQueryCollection.

QueryStringValueProviderFactory

A IValueProviderFactory that creates IValueProvider instances that read values from the request query-string.

RouteValueProvider

An IValueProvider adapter for data stored in an RouteValueDictionary.

RouteValueProviderFactory

A IValueProviderFactory for creating RouteValueProvider instances.

SuppressChildValidationMetadataProvider

An IValidationMetadataProvider which configures ValidateChildren to false for matching types.

TooManyModelErrorsException

The Exception that is thrown when too many model errors are encountered.

UnsupportedContentTypeException

The Exception that is added to model state when a model binder for the body of the request is unable to understand the request content type header.

UnsupportedContentTypeFilter

A filter that scans for UnsupportedContentTypeException in the ModelState and short-circuits the pipeline with an Unsupported Media Type (415) response.

ValueProviderException

Exception thrown by IValueProviderFactory when the input is unable to be read.

ValueProviderFactoryContext

A context for IValueProviderFactory.

ValueProviderFactoryExtensions

Extension methods for IValueProviderFactory.

ValueProviderResultExtensions

Extensions methods for ValueProviderResult.

Structs

EnumGroupAndName

An abstraction used when grouping enum values for EnumGroupedDisplayNamesAndValues.

ModelBindingContext.NestedScope

Return value of EnterNestedScope. Should be disposed by caller when child binding context state should be popped off of the ModelBindingContext.

ModelBindingResult

Contains the result of model binding.

ModelStateDictionary.Enumerator

An IEnumerator<T> for ModelStateDictionary.PrefixEnumerable.

ModelStateDictionary.KeyEnumerable

A IEnumerable<T> for keys in ModelStateDictionary.

ModelStateDictionary.KeyEnumerator

An IEnumerator<T> for keys in ModelStateDictionary.

ModelStateDictionary.PrefixEnumerable

Enumerates over ModelStateDictionary to provide entries that start with the specified prefix.

ModelStateDictionary.ValueEnumerable

An IEnumerable for ModelStateEntry.

ModelStateDictionary.ValueEnumerator

An enumerator for ModelStateEntry.

ValueProviderResult

Result of an GetValue(String) operation.

Interfaces

IBinderTypeProviderMetadata

Provides a Type which implements IModelBinder.

IBindingSourceMetadata

Metadata which specifies the data source for model binding.

IBindingSourceValueProvider

A value provider which can filter its contents based on BindingSource.

ICollectionModelBinder

Interface for model binding collections.

IEnumerableValueProvider

Interface representing an enumerable IValueProvider.

IKeyRewriterValueProvider

A value provider which can filter its contents to remove keys rewritten compared to the request data.

IModelBinder

Defines an interface for model binders.

IModelBinderFactory

A factory abstraction for creating IModelBinder instances.

IModelBinderProvider

Creates IModelBinder instances. Register IModelBinderProvider instances in MvcOptions.

IModelMetadataProvider

A provider that can supply instances of ModelMetadata.

IModelNameProvider

Represents an entity which can provide model name as metadata.

IOptionalBinderMetadata

An type that designates an optional parameter for the purposes of ASP.NET Web API action overloading. Optional parameters do not participate in overloading, and do not have to have a value for the action to be selected.

This has no impact when used without ASP.NET Web API action overloading.

IPropertyFilterProvider

Provides a predicate which can determines which model properties or parameters should be bound by model binding.

IRequestPredicateProvider

An interface that allows a top-level model to be bound or not bound based on state associated with the current request.

IValueProvider

Defines the methods that are required for a value provider.

IValueProviderFactory

A factory for creating IValueProvider instances.

Enums

BindingBehavior

Enumerates behavior options of the model binding system.

EmptyBodyBehavior

Determines the behavior for processing empty bodies during input formatting.

ModelValidationState

The validation state of a ModelStateEntry instance.

ModelValidationState of Root is used to determine the validity of ModelStateDictionary. IsValid is true, when the aggregate validity (GetFieldValidationState(String)) of the root node is Valid.

Remarks

For more information on model binding, Model binding.