AutomationElement.IsPasswordProperty Fält

Definition

Identifierar egenskapen 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 

Fältvärde

Exempel

I följande exempel hämtas det aktuella värdet för egenskapen.

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

Kommentarer

Den här identifieraren används av UI Automation klientprogram. UI Automation providers bör använda motsvarande identifierare i AutomationElementIdentifiers.

Den här egenskapen kan också hämtas från Current egenskaperna eller Cached .

Returvärdet för den här egenskapen är .Boolean Den returnerar true för att indikera att innehållet är skyddat, annars false.

Gäller för

Se även