Multiple choice technology programming languages

Which contract is used in WCF Service for Exceptions

  1. Message Contract

  2. Exception Contract

  3. Fault COntract

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In WCF (Windows Communication Foundation), FaultContract is used to define the error/fault information that a service can send to clients. It specifies the type of SOAP faults that can be returned. MessageContract defines message structure, and there is no 'ExceptionContract' in WCF.