Επεξεργασία

Κοινή χρήση μέσω


StringLengthAttribute(Int32) Constructor

Definition

Initializes a new instance of the StringLengthAttribute class by using a specified maximum length.

public:
 StringLengthAttribute(int maximumLength);
public StringLengthAttribute (int maximumLength);
new System.ComponentModel.DataAnnotations.StringLengthAttribute : int -> System.ComponentModel.DataAnnotations.StringLengthAttribute
Public Sub New (maximumLength As Integer)

Parameters

maximumLength
Int32

The maximum length of a string.

Applies to