Share via


AutomationProperties.SetAutomationId(DependencyObject, String) Método

Definición

Establece la propiedad adjunta AutomationId para el elemento DependencyObject especificado.

public:
 static void SetAutomationId(System::Windows::DependencyObject ^ element, System::String ^ value);
public static void SetAutomationId (System.Windows.DependencyObject element, string value);
static member SetAutomationId : System.Windows.DependencyObject * string -> unit
Public Shared Sub SetAutomationId (element As DependencyObject, value As String)

Parámetros

element
DependencyObject

DependencyObject en el que se va a establecer la propiedad.

value
String

Valor de identificador Automatización de la interfaz de usuario que se va a establecer.

Se aplica a

Consulte también