none
Difference between KnownType and ServiceKnownType Attributes RRS feed

  • Question

  • Can anyone please elaborte on Difference between KnownType and ServiceKnownType Attributes and which 1 to use when and where and how.

    Wednesday, January 16, 2008 6:59 AM

Answers

  • KnownType is being applied at DataContract and let you state which subclasses are acceptable by it. It will to all contracts & operation using this DC.

     

    ServiceKnownType is being applied at theSeriveContract/Operation contract level, and let you state the subclasses allowed by the decorated SC/OC.

     

    The main difference are scope in which the knowntypes are being applied to.

     

    Hope this helps.

    Sara

     

    Wednesday, January 16, 2008 7:15 AM