AutomationElement.NotSupported Campo
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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.