Share via


PasswordBox.MaxLength Property

Definition

Gets or sets the maximum length for passwords to be handled by this PasswordBox.

public:
 property int MaxLength { int get(); void set(int value); };
int MaxLength();

void MaxLength(int value);
public int MaxLength { get; set; }
var int32 = passwordBox.maxLength;
passwordBox.maxLength = int32;
Public Property MaxLength As Integer
<PasswordBox MaxLength="int"/>

Property Value

Int32

int

An integer that specifies the maximum number of characters for passwords to be handled by this PasswordBox. A value of zero (0) means no limit. The default is 0 (no length limit).

Applies to