ExceptionShieldingAttribute Class

Indicates that an implementation service class will use exception shielding.

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

public class ExceptionShieldingAttribute : Attribute, 
	IServiceBehavior, IContractBehavior, IErrorHandler

Add this attribute to your service implementation class or your service contract interface and configure your host configuration file to use the Enterprise Library Exception Handling Application Block adding the FaultContractExceptionHandler class to the exceptionHandlers collection and set your FaultContract type that maps to a particular exception.

System.Object
  System.Attribute
    Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WCF.ExceptionShieldingAttribute
Show: