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 para un AutomationElementobjeto , 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 de Automatización de la interfaz de usuario usan este identificador. Los proveedores de automatización de la interfaz de usuario deben usar el identificador equivalente en AutomationElementIdentifiers.

Se aplica a

Consulte también