共用方式為


RequiredAttributeAdapter 建構函式

定義

初始化 RequiredAttributeAdapter 類別的新執行個體。

public:
 RequiredAttributeAdapter(System::Web::ModelBinding::ModelMetadata ^ metadata, System::Web::ModelBinding::ModelBindingExecutionContext ^ context, System::ComponentModel::DataAnnotations::RequiredAttribute ^ attribute);
public RequiredAttributeAdapter (System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext context, System.ComponentModel.DataAnnotations.RequiredAttribute attribute);
new System.Web.ModelBinding.RequiredAttributeAdapter : System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ModelBindingExecutionContext * System.ComponentModel.DataAnnotations.RequiredAttribute -> System.Web.ModelBinding.RequiredAttributeAdapter
Public Sub New (metadata As ModelMetadata, context As ModelBindingExecutionContext, attribute As RequiredAttribute)

參數

metadata
ModelMetadata

中繼資料。

context
ModelBindingExecutionContext

執行內容。

attribute
RequiredAttribute

屬性。

適用於