Szerkesztés

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


System.Web.ModelBinding Namespace

Provides classes that enable you to bind data objects to ASP.NET Web Forms server controls.

Classes

ArrayModelBinder<TElement>

Maps a browser request to an array.

ArrayModelBinderProvider

Provides a model binder for arrays.

AssociatedMetadataProvider

Provides an abstract class to implement a metadata provider.

AssociatedValidatorProvider

Provides an abstract class for classes that implement a validation provider.

BinaryDataModelBinderProvider

Gets a model binder for binary data.

BindingBehaviorAttribute

Provides a base class for model-binding behavior attributes.

BindNeverAttribute

Provides an attribute that specifies that model binding should exclude a property.

BindRequiredAttribute

Provides an attribute that specifies that a property is required for model binding.

CollectionModelBinder<TElement>

Maps a browser request to a collection.

CollectionModelBinderProvider

Provides a model binder for a collection.

ComplexModel

Describes a complex model, using a collection rather than individual properties as the data store.

ComplexModelBinder

Maps a browser request to a complex data model.

ComplexModelBinderProvider

Provides a model binder for a complex model.

ComplexModelResult

Provides a container for data that is stored by the ComplexModel class.

ControlAttribute

Represents an attribute that specifies that values for model binding are provided by a control.

ControlValueProvider

Represents a value provider for control values.

CookieAttribute

Represents an attribute that specifies that the values for model binding are provided by a cookie.

CookieValueProvider

Represents a value provider for cookie values.

DataAnnotationsModelMetadata

Provides a container for common metadata, for the DataAnnotationsModelMetadataProvider class, and for the DataAnnotationsModelValidator class for a data model.

DataAnnotationsModelMetadataProvider

Implements the default model metadata provider.

DataAnnotationsModelValidator

Provides a model validator.

DataAnnotationsModelValidator<TAttribute>

Provides a model validator for a specified validation type.

DataAnnotationsModelValidatorProvider

Implements the default validator provider.

DefaultModelBinder

Maps a browser request to a data object. This class provides a concrete implementation of a model binder.

DictionaryModelBinder<TKey,TValue>

Maps a browser request to a dictionary data object.

DictionaryModelBinderProvider

Provides a model binder for a dictionary.

DictionaryValueProvider<TValue>

Represents the base class for value providers whose values come from a collection that implements the IDictionary<TKey,TValue> interface.

EmptyModelMetadataProvider

Provides an empty metadata provider for data models that do not require metadata.

ExtensibleModelBinderAttribute

Specifies the binder type for a model type.

FormAttribute

Represents an attribute that specifies that values for model binding are provided by a form field.

FormValueProvider

Represents a value provider for form values.

GenericModelBinderProvider

Gets a model binder for a generic type.

KeyValuePairModelBinder<TKey,TValue>

Maps a browser request to a key/value pair data object.

KeyValuePairModelBinderProvider

Provides a model binder for a collection of key/value pairs.

MaxLengthAttributeAdapter

Provides an adapter for the MaxLengthAttribute attribute.

MinLengthAttributeAdapter

Provides an adapter for the MinLengthAttribute attribute.

ModelBinderDictionary

Provides a container for all model binders for the application, listed by binder type.

ModelBinderErrorMessageProviders

Provides a container for model-binder error message providers.

ModelBinderProvider

Provides an abstract base class for model binder providers.

ModelBinderProviderCollection

Provides a container for a collection of model binder providers.

ModelBinderProviderOptionsAttribute

Represents an attribute that specifies options for a model-binder provider.

ModelBinderProviders

Provides a container for model binder providers for the application.

ModelBinders

Provides global access to the model binders for the application.

ModelBindingContext

Provides the context in which a model binder functions.

ModelBindingExecutionContext

Encapsulates all of the information that is external to the model binding system that the model binding system needs.

ModelError

Represents an error that occurs during model binding.

ModelErrorCollection

Provides a container for model validation errors.

ModelMetadata

Provides a container for metadata for a model.

ModelMetadataProvider

Provides an abstract base class for a custom metadata provider.

ModelMetadataProviders

Provides a container for the current ModelMetadataProvider instance.

ModelState

Encapsulates the state of model binding.

ModelStateDictionary

Represents the state of model binding.

ModelValidatedEventArgs

Provides data for the Validated event.

ModelValidatingEventArgs

Provides data for the Validating event.

ModelValidationNode

Provides a container for model validation information.

ModelValidationResult

Provides a container for a validation result.

ModelValidator

Provides a base class for implementing validation logic.

ModelValidatorProvider

Provides a collection of model validators.

ModelValidatorProviderCollection

Provides a container for a collection of validation providers.

ModelValidatorProviders

Provides a container for the current validation provider.

MutableObjectModelBinder

Maps a browser request to a mutable data object.

MutableObjectModelBinderProvider

Provides a model binder for mutable objects.

NameValueCollectionValueProvider

Represents the base class for value providers whose values come from a name/value collection.

ProfileAttribute

Represents an attribute that specifies that values for model binding are provided by a profile.

ProfileValueProvider

Represents a value provider for profile values.

QueryStringAttribute

Represents an attribute that specifies that model binding values are provided by a query string value.

QueryStringValueProvider

Represents a value provider for query-string values.

RangeAttributeAdapter

Provides an adapter for the RangeAttribute attribute.

RegularExpressionAttributeAdapter

Provides an adapter for the RegularExpressionAttribute attribute.

RequiredAttributeAdapter

Provides an adapter for the RequiredAttribute attribute.

RouteDataAttribute

Represents an attribute that specifies that values for model binding are provided by route data.

RouteDataValueProvider

Represents a value provider for route data.

SessionAttribute

Represents an attribute that specifies that values for model binding are provided by session state.

SimpleModelBinderProvider

Provides a model binder for a simple type.

SimpleValueProvider

Represents a value provider for single key/value lookups.

StringLengthAttributeAdapter

Provides an adapter for the StringLengthAttribute attribute.

TypeConverterModelBinder

Maps a browser request to a data object. This type is used when model binding requires conversions using a .NET Framework type converter.

TypeConverterModelBinderProvider

Provides a model binder for a model that requires type conversion.

TypeMatchModelBinder

Maps a browser request to a data object. This class is used when model binding does not require type conversion.

TypeMatchModelBinderProvider

Provides a model binder for a model that does not require type conversion.

UserProfileAttribute

Represents an attribute that specifies that values for model binding are provided by a user profile.

UserProfileValueProvider

Represents a value provider for user profiles.

ValidatableObjectAdapter

Provides an adapter for objects that implement the IValidatableObject interface.

ValueProviderCollection

Represents the collection of value-provider objects for the application.

ValueProviderResult

Represents the result of retrieving a value from a value provider.

ValueProviderSourceAttribute

Provides a base class for value-provider attributes that can be used in method parameters to specify the source of values for model binding, such as FormAttribute, QueryStringAttribute, and ViewStateAttribute.

ViewStateAttribute

Represents an attribute that specifies that values for model binding are provided by view state.

ViewStateValueProvider

Represents a value provider for view state values.

Interfaces

IMetadataAware

Defines a method that must be implemented by classes that are metadata-aware.

IModelBinder

Defines the method that is required for a model binder.

IModelNameProvider

Provides a way to specify an alternate name to use for model binding instead of using the parameter name.

IUnvalidatedValueProvider

Defines the method that is required for an unvalidated value provider.

IUnvalidatedValueProviderSource

Defines the methods that are required for a value provider that supports skipping request validation.

IValueProvider

Defines the methods that are required for a value provider.

IValueProviderSource

Defines the method that is required for a value provider source.

Enums

BindingBehavior

Enumerates model-binding behavior options.

Delegates

DataAnnotationsModelValidationFactory

Represents the method that creates a DataAnnotationsModelValidatorProvider instance.

DataAnnotationsValidatableObjectAdapterFactory

Represents a factory for validators that are based on the IValidatableObject interface.

ModelBinderErrorMessageProvider

Represents a method that provides a model-binding error message.

Remarks

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.