UITechnologyElement.GetNativeControlType (Método)

Devuelve el tipo de control nativo de este elemento.

Espacio de nombres:  Microsoft.VisualStudio.TestTools.UITest.Extension
Ensamblado:  Microsoft.VisualStudio.TestTools.UITest.Extension (en Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Sintaxis

'Declaración
Public MustOverride Function GetNativeControlType ( _
    nativeControlTypeKind As NativeControlTypeKind _
) As Object
public abstract Object GetNativeControlType(
    NativeControlTypeKind nativeControlTypeKind
)
public:
virtual Object^ GetNativeControlType(
    NativeControlTypeKind nativeControlTypeKind
) abstract
abstract GetNativeControlType : 
        nativeControlTypeKind:NativeControlTypeKind -> Object 
public abstract function GetNativeControlType(
    nativeControlTypeKind : NativeControlTypeKind
) : Object

Parámetros

Valor devuelto

Tipo: System.Object
Si se admite, el tipo nativo del control; de lo contrario, nullreferencia null (Nothing en Visual Basic).

Implementaciones

IUITechnologyElement.GetNativeControlType(NativeControlTypeKind)

Comentarios

Este método GetNativeControlType se puede usar en un tándem con el tipo universal que se obtiene mediante ControlTypeName cuando ControlTypeName simplemente no es suficiente para diferenciar un control.Por ejemplo, si la tecnología nativa es HTML, este método podría devolver el nombre de etiqueta.

Seguridad de .NET Framework

Vea también

Referencia

UITechnologyElement Clase

Microsoft.VisualStudio.TestTools.UITest.Extension (Espacio de nombres)

ControlTypeName