'Declaration<ExtensionAttribute()> Public Shared Function TryCreateInstance( _ ByVal type As Type, _ ByRef instance As Object, _ ByRef catchException As Exception _ ) As Boolean
'UsageDim type As Type Dim instance As Object Dim catchException As Exception Dim value As Boolean value = TypeExtensionR.TryCreateInstance(type, instance, catchException)
[Extension()] public static bool TryCreateInstance( Type type, out object instance, out Exception catchException )
[Extension()] public: static bool TryCreateInstance( Type^ type, [Out] Object^ instance, [Out] Exception^ catchException )
Parameters
- type
The value of this parameter cannot be
null(Nothingin Visual Basic).- instance
The value of this parameter can be
null(Nothingin Visual Basic).- catchException
The value of this parameter can be
null(Nothingin Visual Basic).