AutomationPeer.IsPasswordCore 方法

定義

當 Microsoft UI 自動化用戶端呼叫 IsPassword 或對等的 Microsoft UI 自動化用戶端 API 時,提供對等的行為。

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

傳回

Boolean

bool

如果專案包含敏感性內容,則為true;否則為false

備註

標準實作會傳回 falsePasswordBoxAutomationPeer 提供傳回 true的實作。 如果控制項所傳回的對等是 PasswordBoxAutomationPeer 或衍生自它,您將繼承該行為。

適用於

另請參閱