RanorexRanorex Documentation
TryCreate Method (adapterType, element, adapter)
NamespacesRanorexAdapterTryCreate(Type, Element, Adapter%)
Tries to construct an adapter of a specific type for a given element.
Declaration Syntax
C#Visual BasicVisual C++
public 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
public:
static bool TryCreate(
	Type^ adapterType, 
	Element^ element, 
	[OutAttribute] Adapter^% adapter
)
Parameters
adapterType (Type)
The type of adapter to construct.
element (Element)
The element associated with the adapter.
adapter ( Adapter %)
When this method returns, the created adapter instance, if it could be created; otherwise a null reference.
Return Value
true if an adapter was successfully created, otherwise false.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 4.0.3.22982 (4.0.3.22982)