Share via


AutomationElement.IsPasswordProperty Campo

Definizione

Identifica la proprietà IsPassword.

public: static initonly System::Windows::Automation::AutomationProperty ^ IsPasswordProperty;
public static readonly System.Windows.Automation.AutomationProperty IsPasswordProperty;
 staticval mutable IsPasswordProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly IsPasswordProperty As AutomationProperty 

Valore del campo

AutomationProperty

Esempio

Nell'esempio seguente viene recuperato il valore corrente della proprietà .

bool isTextPassword = (bool)
   autoElement.GetCurrentPropertyValue(AutomationElement.IsPasswordProperty);
Dim isTextPassword As Boolean = CBool(autoElement.GetCurrentPropertyValue(AutomationElement.IsPasswordProperty))

Commenti

Questo identificatore viene usato da Automazione interfaccia utente applicazioni client. Automazione interfaccia utente provider devono usare l'identificatore equivalente in AutomationElementIdentifiers.

Questa proprietà può essere recuperata anche dalle Current proprietà o Cached .

Il valore restituito per questa proprietà è .Boolean Restituisce true per indicare che il contenuto è protetto; in caso contrario false, .

Si applica a

Vedi anche