Click or drag to resize
Ranorex

AdapterTryCreate Method (Type, Element, Adapter)

Tries to construct an adapter of a specific type for a given element.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static bool TryCreate(
	Type adapterType,
	Element element,
	out Adapter adapter
)

Parameters

adapterType
Type: SystemType
The type of adapter to construct.
element
Type: Ranorex.CoreElement
The element associated with the adapter.
adapter
Type: RanorexAdapter
When this method returns, the created adapter instance, if it could be created; otherwise a null reference.

Return Value

Type: Boolean
true if an adapter was successfully created, otherwise false.
See Also