語言

AutomationElement.IsRequiredForFormProperty 欄位

定義

識別該 IsRequiredForForm 物業。

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

欄位值

範例

以下範例取得該屬性的當前值。 若元素未提供預設值,則回傳預設值。

bool isRequired = (bool)
   autoElement.GetCurrentPropertyValue(AutomationElement.IsRequiredForFormProperty);
Dim isRequired As Boolean = _
    CBool(autoElement.GetCurrentPropertyValue(AutomationElement.IsRequiredForFormProperty))

備註

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

此屬性也可從 Current 或 Cached 屬性中取得。

此屬性的回傳值型別 Boolean為 ,預設值為 false。

適用於

另請參閱