IXRPasswordBox::GetMaxLength (Compact 2013)

3/28/2014

This method retrieves the maximum length for passwords that this password box can accept.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetMaxLength(
    __out int* pMaxLength
) = 0;

Parameters

  • pMaxLength
    [out] Pointer to an integer value that specifies the maximum length, in characters, for passwords to be handled by this password box. A value of zero (0) means no limit.

Return Value

Returns an HRESULT that indicates success or no success.

Remarks

The value of pMaxLength only restricts the length of a password entered manually by the user. It does not affect programmatic manipulation of the password value.

.NET Framework Equivalent

System.Windows.Controls.PasswordBox.MaxLength

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRPasswordBox
IXRPasswordBox::SetMaxLength