Поделиться через


IXRPasswordBox::SetPasswordChar (Compact 2013)

3/28/2014

This method sets the masking character for this password box.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetPasswordChar(
    __in WCHAR PasswordChar
) = 0;

Parameters

  • PasswordChar
    [in] A string that contains a single masking character to echo when the user enters text into this password box.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When the user enters text into a password box, the masking character specified by PasswordChar is echoed in the password input field, instead of echoing the actual password itself. This helps prevent passwords from being exposed to casual observers when they are entered.

.NET Framework Equivalent

System.Windows.Controls.PasswordBox.PasswordChar

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRPasswordBox