مشاركة عبر


AutomationPeer.IsPasswordCore Method

Definition

Provides the peer's behavior when a Microsoft UI Automation client calls IsPassword or an equivalent Microsoft UI Automation client API.

protected:
 virtual bool IsPasswordCore() = IsPasswordCore;
bool IsPasswordCore();
protected virtual bool IsPasswordCore();
function isPasswordCore()
Protected Overridable Function IsPasswordCore () As Boolean

Returns

Boolean

bool

true if the element contains sensitive content; otherwise, false.

Remarks

The standard implementation returns false. PasswordBoxAutomationPeer provides an implementation that returns true. If the peer being returned by your control is PasswordBoxAutomationPeer or derived from it, you will inherit that behavior.

Applies to

See also