Gets the instance of the given type.

C# | Visual Basic | Visual C++ |
public static T GetInstance<T>( IntPtr value, bool canFail ) where T : class, IManagedWrapper
Public Shared Function GetInstance(Of T As {Class, IManagedWrapper}) ( _ value As IntPtr, _ canFail As Boolean _ ) As T
public: generic<typename T> where T : ref class, IManagedWrapper static T GetInstance( IntPtr value, bool canFail )

- T
- The parametric type.

An instance of the type, or null if the type is invalid.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)