Share via


AutomationProperties.SetAutomationId(DependencyObject, String) Metodo

Definizione

Imposta il valore della proprietà associata AutomationProperties.AutomationId per l'oggetto DependencyObject specificato.

public:
 static void SetAutomationId(DependencyObject ^ element, Platform::String ^ value);
 static void SetAutomationId(DependencyObject const& element, winrt::hstring const& value);
public static void SetAutomationId(DependencyObject element, string value);
function setAutomationId(element, value)
Public Shared Sub SetAutomationId (element As DependencyObject, value As String)

Parametri

element
DependencyObject

DependencyObject per cui impostare la proprietà.

value
String

Platform::String

winrt::hstring

Valore Automazione interfaccia utente identificatore da impostare.

Si applica a

Vedi anche