 | 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
Syntaxpublic static bool TryCreate(
Type adapterType,
Element element,
out Adapter adapter
)
Public Shared Function TryCreate (
adapterType As Type,
element As Element,
<OutAttribute> ByRef adapter As Adapter
) As Boolean
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:
Booleantrue if an adapter was successfully created, otherwise
false.
See Also