Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PasswordBox.MaxLength Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?