AutomationProperties.SetAutomationId(DependencyObject, String) Methode

Definitie

Hiermee stelt u de AutomationId gekoppelde eigenschap voor de opgegeven DependencyObject.

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)

Parameters

element
DependencyObject

De DependencyObject eigenschap waarop u de eigenschap wilt instellen.

value
String

De UI Automation id-waarde die moet worden ingesteld.

Van toepassing op

Zie ook