What is the purpose of a contract in WCF? Name different types.
Ask by ICSM Computer
Updated 26 May 2025
In WCF, a contract defines what a service does — essentially the interface between the client and the service. It specifies the operations (methods), data structures, messages, and faults the service supports.
Purpose of a Contract in WCF
Types of Contracts in WCF
[ServiceContract]and[OperationContract].[DataContract]and[DataMember].[FaultContract]to declare expected faults.Summary