AutomationProperties.GetAutomationId(DependencyObject) Metodo

Definizione

Ottiene la AutomationId proprietà associata per l'oggetto specificato DependencyObject.

public:
 static System::String ^ GetAutomationId(System::Windows::DependencyObject ^ element);
public static string GetAutomationId (System.Windows.DependencyObject element);
static member GetAutomationId : System.Windows.DependencyObject -> string
Public Shared Function GetAutomationId (element As DependencyObject) As String

Parametri

element
DependencyObject

Oggetto DependencyObject da verificare.

Restituisce

String

Identificatore Automazione interfaccia utente per l'elemento specificato.

Commenti

Se AutomationId la proprietà non è impostata, questo metodo restituisce la Name proprietà .

Si applica a

Vedi anche