共用方式為


StringLengthAttributeAdapter 建構函式

定義

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

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

參數

metadata
ModelMetadata

模型中繼資料。

context
ControllerContext

控制器內容。

attribute
StringLengthAttribute

字串長度屬性。

適用於