AutomationElement.NotSupported 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示該物業未被支持。
public: static initonly System::Object ^ NotSupported;
public static readonly object NotSupported;
staticval mutable NotSupported : obj
Public Shared ReadOnly NotSupported As Object
欄位值
範例
以下範例取得 的 help text 屬性 AutomationElement,並指定若控制項不支援該屬性,應回傳該 NotSupported 屬性。
// elementList is an AutomationElement.
object help = elementList.GetCurrentPropertyValue(AutomationElement.HelpTextProperty, true);
if (help == AutomationElement.NotSupported)
{
help = "No help available";
}
string helpText = (string)help;
' elementList is an AutomationElement.
Dim help As Object = elementList.GetCurrentPropertyValue(AutomationElement.HelpTextProperty, True)
If help Is AutomationElement.NotSupported Then
help = "No help available"
End If
Dim helpText As String = CStr(help)
備註
此識別碼用於 使用者介面自動化 客戶端應用程式。 使用者介面自動化提供者應使用等效的識別碼為 AutomationElementIdentifiers。