AutomationProperties.SetName(DependencyObject, String) AutomationProperties.SetName(DependencyObject, String) AutomationProperties.SetName(DependencyObject, String) AutomationProperties.SetName(DependencyObject, String) Method

Definition

Sets the value of the AutomationProperties.Name attached property for the specified DependencyObject.

public : static void SetName(DependencyObject element, Platform::String value)
static void SetName(DependencyObject element, winrt::hstring value) const;
public static void SetName(DependencyObject element, String value)
Public Shared Sub SetName(element As DependencyObject, value As String)

Parameters

element
DependencyObject DependencyObject

The DependencyObject for which to set the property.

value
String String

The object name.