ReplaceWithHandlerLoggingConfigurationSourceBuilderExtensions.ReplaceWith Method (IExceptionConfigurationAddExceptionHandlers, Type)

Replace exception with new exception type.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration
Assembly: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling (in Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

public static IExceptionConfigurationReplaceWithProvider ReplaceWith(
    this IExceptionConfigurationAddExceptionHandlers context,
    Type replacingExceptionType
)
'Declaration
<ExtensionAttribute> 
Public Shared Function ReplaceWith ( 
    context As IExceptionConfigurationAddExceptionHandlers,
    replacingExceptionType As Type
) As IExceptionConfigurationReplaceWithProvider
public:
[ExtensionAttribute]
static IExceptionConfigurationReplaceWithProvider^ ReplaceWith(
    IExceptionConfigurationAddExceptionHandlers^ context, 
    Type^ replacingExceptionType
)

Parameters

Return Value

Type: IExceptionConfigurationReplaceWithProvider

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IExceptionConfigurationAddExceptionHandlers. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

ReplaceWithHandlerLoggingConfigurationSourceBuilderExtensions Class

ReplaceWithHandlerLoggingConfigurationSourceBuilderExtensions Members

ReplaceWith Overload

Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace