Aracılığıyla paylaş


MvcViewOptions.AllowRenderingMaxLengthAttribute Özellik

Tanım

Veya öznitelikleriyle StringLengthAttribute işaretlenmiş modellere bağlı olduklarında, uyumlu HTML öğeleri için maxlength özniteliğinin işlenip işlenmeyeceğini belirten bir değer alır veya MaxLengthAttribute ayarlar.

public:
 property bool AllowRenderingMaxLengthAttribute { bool get(); void set(bool value); };
public bool AllowRenderingMaxLengthAttribute { get; set; }
member this.AllowRenderingMaxLengthAttribute : bool with get, set
Public Property AllowRenderingMaxLengthAttribute As Boolean

Özellik Değeri

Açıklamalar

Her iki öznitelik de belirtilirse, işlenen maxlength öznitelik için daha küçük değere sahip olan kullanılır.

Şunlara uygulanır