Cuemon .NET Framework
Parse<TResult> Method (ExceptionUtility)

The type of the exception to find a match on.
The exception to parse for a match on TResult.
Parses the specified exception for a match on TResult.
Syntax
'Declaration
 
Public Shared Function Parse(Of TResult As Exception)( _
   ByVal exception As Exception _
) As TResult
public static TResult Parse<TResult>( 
   Exception exception
)
where TResult: Exception

Parameters

exception
The exception to parse for a match on TResult.

Type Parameters

TResult
The type of the exception to find a match on.

Return Value

The matched exception cast as TResult or null if no match could be resolved.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionexception is null.
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

ExceptionUtility Class
ExceptionUtility Members

 

 


| 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