ExceptionExtensions.FindInnerException<T> Method

An extension method that finds the inner exception of an Exception.

Namespace:  Microsoft.WindowsAzure.MediaServices.Client
Assembly:  Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function FindInnerException(Of T As Class) ( _
    exception As Exception _
) As T
'Usage
Dim exception As Exception 
Dim returnValue As T

returnValue = exception.FindInnerException()
public static T FindInnerException<T>(
    this Exception exception
)
where T : class
[ExtensionAttribute]
public:
generic<typename T>
where T : ref class 
static T FindInnerException(
    Exception^ exception
)
static member FindInnerException : 
        exception:Exception -> 'T  when 'T : not struct
JScript does not support generic types and methods.

Type Parameters

  • T

Parameters

Return Value

Type: T
Returns [{0}].

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=azure.100) or https://msdn.microsoft.com/en-us/library/bb383977(v=azure.100).

See Also

Reference

ExceptionExtensions Class

Microsoft.WindowsAzure.MediaServices.Client Namespace