語言

AutomationElement.FrameworkIdProperty 欄位

定義

識別該 FrameworkId 物業。

public: static initonly System::Windows::Automation::AutomationProperty ^ FrameworkIdProperty;
public static readonly System.Windows.Automation.AutomationProperty FrameworkIdProperty;
 staticval mutable FrameworkIdProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly FrameworkIdProperty As AutomationProperty 

欄位值

範例

以下範例取得該屬性的當前值。

string frameworkId =
   autoElement.GetCurrentPropertyValue(AutomationElement.FrameworkIdProperty)
   as string;
Dim frameworkId As String = _
    CStr(autoElement.GetCurrentPropertyValue(AutomationElement.FrameworkIdProperty))

備註

此識別碼用於 使用者介面自動化 客戶端應用程式。 使用者介面自動化提供者應使用等效的識別碼為 AutomationElementIdentifiers。

屬性的回傳值型別 String為 。 預設值為空字串。

此特性使應用程式能將特殊案例套用於整個使用者介面框架。 屬性值的例子有「Win32」、「WinForm」和「DirectUI」。

適用於

另請參閱