AutomationElement.FrameworkIdProperty 欄位

定義

識別 FrameworkId 屬性。Identifies the FrameworkId property.

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 

欄位值

AutomationProperty

範例

下列範例會抓取屬性的目前值。The following example retrieves the current value of the property.

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

備註

消費者介面自動化用戶端應用程式會使用此識別碼。This identifier is used by UI Automation client applications. 消費者介面自動化提供者應該在中使用對等的識別碼 AutomationElementIdentifiersUI Automation providers should use the equivalent identifier in AutomationElementIdentifiers.

屬性的傳回值屬於類型 StringReturn values of the property are of type String. 預設值為空字串。The default value is an empty string.

這個屬性可讓應用程式將特殊案例套用至整個 UI 架構。This property enables applications to apply special cases to entire UI frameworks. 屬性值的範例為 "Win32"、"WinForm" 和 "DirectUI"。Examples of property values are "Win32", "WinForm", and "DirectUI".

適用於