System.Web.ModelBinding 命名空間

提供類別,讓您可以將資料物件繫結至 ASP.NET Web Forms 伺服器控制項。

類別

ArrayModelBinder<TElement>

將瀏覽器要求對應至陣列。

ArrayModelBinderProvider

提供陣列的模型繫結器。

AssociatedMetadataProvider

提供抽象類別來實作中繼資料提供者。

AssociatedValidatorProvider

針對實作驗證提供者的類別提供抽象類別。

BinaryDataModelBinderProvider

取得二進位資料的模型繫結器。

BindingBehaviorAttribute

提供模型繫結行為屬性的基底類別。

BindNeverAttribute

提供屬性 (Attribute),指定模型繫結應該執行屬性 (Property)。

BindRequiredAttribute

提供屬性 (Attribute),指定屬性 (Property) 是模型繫結所需。

CollectionModelBinder<TElement>

將瀏覽器要求對應至集合。

CollectionModelBinderProvider

提供集合的模型繫結器。

ComplexModel

描述使用集合而非個別屬性做為資料存放區的複雜模型。

ComplexModelBinder

將瀏覽器要求對應至複雜資料模型。

ComplexModelBinderProvider

提供複雜模型的模型繫結器。

ComplexModelResult

ComplexModel 類別所儲存的資料提供容器。

ControlAttribute

表示屬性,此屬性指定模型繫結的值由控制項提供。

ControlValueProvider

表示控制項值的值提供者。

CookieAttribute

表示屬性,此屬性指定模型繫結的值由 Cookie 提供。

CookieValueProvider

表示 Cookie 值的值提供者。

DataAnnotationsModelMetadata

針對資料模型的通用中繼資料、DataAnnotationsModelMetadataProvider 類別和 DataAnnotationsModelValidator 類別,提供容器。

DataAnnotationsModelMetadataProvider

實作預設模型中繼資料提供者。

DataAnnotationsModelValidator

提供模型驗證程式。

DataAnnotationsModelValidator<TAttribute>

提供指定驗證類型的模型驗證程式。

DataAnnotationsModelValidatorProvider

實作預設驗證程式提供者。

DefaultModelBinder

將瀏覽器要求對應至資料物件。 這個類別提供模型繫結器的具體實作。

DictionaryModelBinder<TKey,TValue>

將瀏覽器要求對應至字典資料物件。

DictionaryModelBinderProvider

提供字典的模型繫結器。

DictionaryValueProvider<TValue>

表示值提供者的基底類別,該值提供者的值來自實作 IDictionary<TKey,TValue> 介面的集合。

EmptyModelMetadataProvider

針對不需要中繼資料的資料模型,提供空白中繼資料提供者。

ExtensibleModelBinderAttribute

指定模型類型的繫結器類型。

FormAttribute

表示屬性,此屬性指定模型繫結的值由表單欄位提供。

FormValueProvider

表示表單值的值提供者。

GenericModelBinderProvider

取得泛型型別的模型繫結器。

KeyValuePairModelBinder<TKey,TValue>

將瀏覽器要求對應至索引鍵/值組資料物件。

KeyValuePairModelBinderProvider

提供索引鍵/值組集合的模型繫結器。

MaxLengthAttributeAdapter

提供 MaxLengthAttribute 屬性的配接器。

MinLengthAttributeAdapter

提供 MinLengthAttribute 屬性的配接器。

ModelBinderDictionary

提供應用程式之所有模型繫結器 (依繫結器型別列出) 的容器。

ModelBinderErrorMessageProviders

提供模型繫結器錯誤訊息提供者的容器。

ModelBinderProvider

為模型繫結器提供者提供抽象基底類別。

ModelBinderProviderCollection

提供模型繫結器提供者集合的容器。

ModelBinderProviderOptionsAttribute

表示指定模型繫結器提供者選項的屬性。

ModelBinderProviders

為應用程式模型繫結器提供者提供容器。

ModelBinders

提供應用程式之模型繫結器的全域存取。

ModelBindingContext

提供模型繫結器運作所在的內容。

ModelBindingExecutionContext

封裝模型繫結系統需要的模型繫結系統外部所有資訊。

ModelError

表示在模型繫結期間所發生的錯誤。

ModelErrorCollection

提供模型驗證錯誤的容器。

ModelMetadata

提供模型中繼資料的容器。

ModelMetadataProvider

提供自訂中繼資料提供者的抽象基底類別。

ModelMetadataProviders

提供目前 ModelMetadataProvider 執行個體的容器。

ModelState

封裝模型繫結的狀態。

ModelStateDictionary

表示模型繫結的狀態。

ModelValidatedEventArgs

提供 Validated 事件的資料。

ModelValidatingEventArgs

提供 Validating 事件的資料。

ModelValidationNode

提供模型驗證資訊的容器。

ModelValidationResult

提供驗證結果的容器。

ModelValidator

提供用於實作驗證邏輯的基底類別。

ModelValidatorProvider

提供模型驗證程式的集合。

ModelValidatorProviderCollection

提供驗證提供者集合的容器。

ModelValidatorProviders

提供目前驗證提供者的容器。

MutableObjectModelBinder

將瀏覽器要求對應至可變動資料物件。

MutableObjectModelBinderProvider

提供可變動物件的模型繫結器。

NameValueCollectionValueProvider

表示值提供者的基底類別,該值提供者的值來自名稱/值物件。

ProfileAttribute

表示屬性,此屬性指定模型繫結的值由設定檔提供。

ProfileValueProvider

表示設定檔值的值提供者。

QueryStringAttribute

表示指定查詢字串值所提供之模型繫結值的屬性

QueryStringValueProvider

表示查詢字串值的值提供者。

RangeAttributeAdapter

提供 RangeAttribute 屬性的配接器。

RegularExpressionAttributeAdapter

提供 RegularExpressionAttribute 屬性的配接器。

RequiredAttributeAdapter

提供 RequiredAttribute 屬性的配接器。

RouteDataAttribute

表示屬性,此屬性指定模型繫結的值由路由資料提供。

RouteDataValueProvider

表示路由資料的值提供者。

SessionAttribute

表示屬性,此屬性指定模型繫結的值由工作階段狀態提供。

SimpleModelBinderProvider

提供簡單型別的模型繫結器。

SimpleValueProvider

表示單一索引鍵/值查詢的值提供者。

StringLengthAttributeAdapter

提供 StringLengthAttribute 屬性的配接器。

TypeConverterModelBinder

將瀏覽器要求對應至資料物件。 當模型繫結需要使用 .NET Framework 型別轉換子進行轉換時,會使用這個型別。

TypeConverterModelBinderProvider

提供需要型別轉換之模型的模型繫結器。

TypeMatchModelBinder

將瀏覽器要求對應至資料物件。 模型繫結不需要型別轉換時,會使用這個類別。

TypeMatchModelBinderProvider

提供不需要型別轉換之模型的模型繫結器。

UserProfileAttribute

表示屬性,此屬性指定模型繫結的值由使用者設定檔提供。

UserProfileValueProvider

表示使用者設定檔的值提供者。

ValidatableObjectAdapter

為實作 IValidatableObject 介面的物件提供配接器。

ValueProviderCollection

代表應用程式的值提供者物件集合。

ValueProviderResult

表示從值提供者擷取值的結果。

ValueProviderSourceAttribute

為值提供者屬性 (可用於方法參數以指定模型繫結值的來源),例如 FormAttributeQueryStringAttributeViewStateAttribute,提供基底類別。

ViewStateAttribute

表示屬性,此屬性指定模型繫結的值由檢視狀態提供。

ViewStateValueProvider

表示檢視狀態值的值提供者。

介面

IMetadataAware

定義必須由中繼資料感知 (Metadata-Aware) 類別實作的方法。

IModelBinder

定義模型繫結器所需的方法。

IModelNameProvider

提供方法來指定要用於模型繫結的替代名稱,而不使用參數名稱。

IUnvalidatedValueProvider

定義未經驗證之值提供者所需的方法。

IUnvalidatedValueProviderSource

定義支援略過要求驗證之值提供者所需的方法。

IValueProvider

定義值提供者所需的方法。

IValueProviderSource

定義值提供者來源所需的方法。

列舉

BindingBehavior

列舉模型繫結行為選項。

委派

DataAnnotationsModelValidationFactory

表示建立 DataAnnotationsModelValidatorProvider 執行個體的方法。

DataAnnotationsValidatableObjectAdapterFactory

表示以 IValidatableObject 介面為根據的驗證程式的 Factory。

ModelBinderErrorMessageProvider

表示提供模型繫結錯誤訊息的提供方法。

備註

如需搭配Web Form使用模型系結的教學課程系列,請參閱模型系結和Web Form