Element.AutomationId 属性

定义

获取或设置允许自动化框架查找此元素并与其交互的值。

public:
 property System::String ^ AutomationId { System::String ^ get(); void set(System::String ^ value); };
public string AutomationId { get; set; }
member this.AutomationId : string with get, set
Public Property AutomationId As String

属性值

自动化框架可用于查找并与此元素交互的值。

注解

此值只能在元素上设置一次。

适用于