RanorexRanorex Documentation
TryCreate<(Of <(T>)>) Method (element, adapter)
NamespacesRanorexAdapterTryCreate<(Of <(T>)>)(Element, T%)
Tries to construct an adapter of a specific type for a given element.
Declaration Syntax
C#Visual BasicVisual C++
public static bool TryCreate<T>(
	Element element,
	out T adapter
)
where T : Adapter
Public Shared Function TryCreate(Of T As Adapter) ( _
	element As Element, _
	<OutAttribute> ByRef adapter As T _
) As Boolean
public:
generic<typename T>
where T : Adapter
static bool TryCreate(
	Element^ element, 
	[OutAttribute] T% adapter
)
Generic Template Parameters
T
The type of adapter to construct. The supplied type must inherit from Adapter, but most not be the Adapter type itself.
Parameters
element (Element)
The element associated with the adapter.
adapter ( T %)
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: 3.2.3.16825 (3.2.3.16825)