Share via


AutomationProperties.GetAutomationId(DependencyObject) メソッド

定義

指定した AutomationIdDependencyObject 添付プロパティを取得します。

public:
 static System::String ^ GetAutomationId(System::Windows::DependencyObject ^ element);
public static string GetAutomationId (System.Windows.DependencyObject element);
static member GetAutomationId : System.Windows.DependencyObject -> string
Public Shared Function GetAutomationId (element As DependencyObject) As String

パラメーター

element
DependencyObject

確認対象の DependencyObject

戻り値

指定した要素のUI オートメーション識別子。

注釈

property が設定されていない場合 AutomationId 、このメソッドは プロパティを Name 返します。

適用対象

こちらもご覧ください