次の方法で共有


IXRPasswordBox::SetPasswordChar (Windows Embedded CE 6.0)

1/6/2010

This method sets the masking character for this password box.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetPasswordChar(
    const 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
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRPasswordBox