Share via


IExceptionConfigurationAddExceptionHandlers Interface

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

This interface provides the extension point for handlers that provide a fluent configuration interface.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Fluent
Assembly: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Silverlight (in Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Silverlight.dll) Version: 5.0.505.0

Syntax

public interface IExceptionConfigurationAddExceptionHandlers : IExceptionConfigurationThenDoPostHandlingAction, 
    IFluentInterface
'Declaration
Public Interface IExceptionConfigurationAddExceptionHandlers _
    Inherits IExceptionConfigurationThenDoPostHandlingAction, IFluentInterface
public interface class IExceptionConfigurationAddExceptionHandlers : IExceptionConfigurationThenDoPostHandlingAction, 
    IFluentInterface

Remarks

Handlers providing a fluent interface should provide extension methods to this interface.

Examples

public static class ReplaceWithHandlerLoggingConfigurationSourceBuilderExtensions { public static IExceptionConfigurationReplaceWithProvider ReplaceWith(this IExceptionConfigurationAddExceptionHandlers context, Type replacingExceptionType) { } }

The context implementer offers additional interfaces that are useful in continuing the configuration of Exception Handling (IExceptionConfigurationForExceptionTypeOrPostHandling or in adding your custom handler information to the currently building exception type (IExceptionHandlerExtension). Instead of casting to these interfaces directly, consider using the ExceptionHandlerConfigurationExtension as a base class for your custom handler builder.

See Also

IExceptionConfigurationAddExceptionHandlers Members

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Fluent Namespace