Cuemon .NET Framework
TryExecuteFunction<TResult>(Doer<TResult>,TResult) Method

The type of the return value of the method.
The function delegate to invoke to try and get the TResult.
When this method returns, contains the TResult from method, or default(TResult) if an exception is thrown.
Returns a value that indicates whether the specified method can be invoked without an exception.
Syntax
'Declaration
 
Public Overloads Shared Function TryExecuteFunction(Of TResult)( _
   ByVal method As Cuemon.Doer(Of TResult), _
   ByRef result As TResult _
) As Boolean
public static bool TryExecuteFunction<TResult>( 
   Cuemon.Doer<TResult> method,
   out TResult result
)

Parameters

method
The function delegate to invoke to try and get the TResult.
result
When this method returns, contains the TResult from method, or default(TResult) if an exception is thrown.

Type Parameters

TResult
The type of the return value of the method.

Return Value

true if an instance of TResult has been created; otherwise false.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TesterDoerUtility Class
TesterDoerUtility Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback