AutomationElement.NotSupported フィールド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
プロパティがサポートされていないことを示します。
public: static initonly System::Object ^ NotSupported;
public static readonly object NotSupported;
staticval mutable NotSupported : obj
Public Shared ReadOnly NotSupported As Object
フィールド値
例
次の例では、コントロールがそのプロパティをサポートしていない場合に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)
注釈
この識別子は、クライアント アプリケーションUI オートメーション使用されます。 UI オートメーションプロバイダーは、AutomationElementIdentifiers で同等の識別子を使用する必要があります。