AutomationElement.NotSupported Campo

Definición

Indica que no se admite una propiedad.

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

Valor de campo

Ejemplos

En el ejemplo siguiente se recupera la propiedad de texto de ayuda de un AutomationElement, especificando que NotSupported se debe devolver si el control no admite esa propiedad.

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

Comentarios

Las aplicaciones cliente usan este identificador Automatización de la interfaz de usuario. Automatización de la interfaz de usuario proveedores deben usar el identificador equivalente en AutomationElementIdentifiers.

Se aplica a

Consulte también