AutomationElement.NotSupported Pole

Definicja

Wskazuje, że właściwość nie jest obsługiwana.

public: static initonly System::Object ^ NotSupported;
public static readonly object NotSupported;
 staticval mutable NotSupported : obj
Public Shared ReadOnly NotSupported As Object 

Wartość pola

Przykłady

Poniższy przykład pobiera właściwość text pomocy dla elementu AutomationElement, określając, że NotSupported ma zostać zwrócona, jeśli kontrolka nie obsługuje tej właściwości.

// 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)

Uwagi

Ten identyfikator jest używany przez aplikacje klienckie automatyzacja interfejsu użytkownika. automatyzacja interfejsu użytkownika dostawcy powinni użyć równoważnego identyfikatora w pliku AutomationElementIdentifiers.

Dotyczy

Zobacz też