Click or drag to resize
Ranorex

IAdapterAsT Method

Returns an adapter of the specified type for the underlying element of the current adapter.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
T As<T>()
where T : Adapter

Type Parameters

T
The adapter type. The supplied type must inherit from Adapter, but most not be the Adapter type itself.

Return Value

Type: T
The specified adapter or null if the underlying element does not provide the capabilites required for the adapter.
See Also