AutomationProperties.SetAutomationId(DependencyObject, String) 메서드

정의

지정한 DependencyObject에 대한 AutomationProperties.AutomationId 연결된 속성의 값을 설정합니다.

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)

매개 변수

element
DependencyObject

속성을 설정할 DependencyObject 입니다.

value
String

Platform::String

winrt::hstring

설정할 UI 자동화 식별자 값입니다.

적용 대상