共用方式為


StringLengthAttributeAdapter 建構函式

定義

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

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

參數

metadata
ModelMetadata

中繼資料。

context
ModelBindingExecutionContext

執行內容。

attribute
StringLengthAttribute

屬性。

適用於