MonobjcMonobjc Documented Class Library
GetInstance<(Of <(<'T>)>)> Method (value, canFail)
NamespacesMonobjcObjectiveCRuntimeGetInstance<(Of <<'(T>)>>)(IntPtr, Boolean)
Gets the instance of the given type.
Declaration Syntax
C#Visual BasicVisual 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
)
Generic Template Parameters
T
The parametric type.
Parameters
value (IntPtr)
The value.
canFail (Boolean)
if set to true the retrieval can fail.
Return Value
An instance of the type, or null if the type is invalid.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc (Module: Monobjc)