Tries to construct an adapter of a specific type for a given element.
| C# | Visual Basic | Visual C++ |
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 )
- 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.
true if an adapter was successfully created, otherwise false.
