共用方式為


AutomationPeer.IsPasswordCore 方法

定義

當 Microsoft 使用者介面自動化 用戶端呼叫 IsPassword 或對等的 Microsoft 使用者介面自動化 用戶端 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 或衍生自該控件,您將繼承該行為。

適用於

另請參閱