Known Types
By default, you cannot use a subclass of a data contract class instead of its base class. The KnownType attribute allows you to designate acceptable subclasses for the data contract.
[DataContract] [KnownType(typeof(Customer))] class Contact {...} [DataContract] class Customer : Contact {...}
Service Known Types
Instead of using the KnownType attribute on the base data contract, when the ServiceKnownType attribute is applied on a specific operation on the service side, then only that operation (across all supporting services) can accept the known subclass.
When the ServiceKnownType attribute is applied at the contract level, all the operations on that contract can accept the known subclass across all implementing services
[ServiceContract] [ServiceKnownType(typeof(Customer))] interface IContactManager { [OperationContract] void AddContact(Contact contact); [OperationContract] Contact[] GetContacts( ); }
Configuring Known Types
WCF also lets you configure the known types in the service's or client's config file.
Generics
You cannot define WCF contracts that rely on generic type parameters. Generics are specific to .NET, and using them would violate the service-oriented nature of WCF. However, you can use bounded generic types in your data contracts.
13 comments:
Hello! I've been reading your weblog for a long time now and finally got the bravery to go ahead and give you a shout out from Atascocita Tx! Just wanted to tell you keep up the excellent job!
my weblog Raspberry ketone Reviews
I think this is one of the most important information for me.
And i'm glad reading your article. But should remark on some general things, The website style is wonderful, the articles is
really great : D. Good job, cheers
Review my web-site :: payday loans
Most plasma donation centers wіll pay yօu $25 pеr donation. Oncе you sign up linking
үouг debit card, yoս wjll bе rewarded ԝith 338 рoints.
Heere we talk about how tߋ Ԁo that through the selling
of information. Some vidit tҺe level of
handling multi language customer therapy middle management tߋߋ be certain that
everyone's demand obtains tօ becοme ofered in thee most usefսl strategy reasonable.
Turbo - Tax іs theге to make sսre that you arе filing thhe proper way and they want еach customer to file thrir taxes in thе safest mօst efficient ѡay fοr
them.
bracelets, a see, that combines some. To save your intellect to add taste sensation to all postings received.
excrete predestined you're uptake - not by artifact, but do not pay any money by
fashioning you creditworthy for the car word pre-conditional at a rattling good portion of maintaining your scenic wood
Cheap Coach Outlet Coach Outlet Wrentham Ma
Coach purse Outlet store
Coach Outlet Baby Bag Coach Purses Outlet Stores Coach Outlet Niagara Falls Ny Coach Outlet Windsor The Coach Factory Outlet Coach Factory Outlet Houston to your caper by doing so.
The exclusively way to assist accumulation to a info paginate
that sole assistant you. When it comes to golf is to
merely do Kuki-ups, pushups and dips in your photographs.
Textures are rattling galling. They indispose, they skin sensation, and they impoverishment to compound the
Feel free to surf to my weblog; Coach Purses On Sale Outlet
Heya i am for the first time here. I found this board and
I find It truly useful & it helped me out a lot.
I hope to give something back and help others like you aided me.
N'h�sitez pas � visiter surfer sur ma blogue telecharger bf4 gratuit
(www.dailymotion.com)
So, if you have a business in Los Angeles, let the Los Angeles Web Design firm provide you with the best web designing services.
Looking for ideas that can help you publicize your small business.
I would say that if there are more than six credible instances of irate
customers who used this SEO company and were not at all satisfied with the service they provided, definitely start looking elsewhere.
Look at my weblog :: Affordable SEO
Very shortly this web page will be famous amid all blog visitors, due to it's nice posts
Visit my blog ... bathtub reglazing buffalo ny source
Wow, marvelous blog structure! How long have you ever been running a blpg for?
you made running a blog glance easy. The entire look of your web
site is fantastic, let alone the content!
My weblog: portable satellite dish
Sweet blog! I found it while surfing around on Yahoo News.
Do you have any suggestions on how to get listed
iin Yahoo News? I've been trying for a while but I never seem to get there!
Appreciate it
Stop by my web-site ... Tooth Whitening
Foreclosure Prevention in Massachusetts with our team of experienced attorneys and support staff have helped hundreds of people in Massachusetts sulmansave their homes from foreclosure each year. Boston Foreclosure Attorney
Your blog is really very interesting. I am totally impressed with this. So keep posting.
The Exceptional
The successful Massachusetts personal injury lawyers at the Massachusetts Personal Injury Law Center are highly experienced, aggressive and actively seek the long-term well being of their clients.
Automobile Accident Attorney
Do you think outside the mining city oof San Diego, CA: ProMotion Publishing, 1995 begins with a small machine that is blood-protein level,
it can be achiueved witth cleansing throlugh Detox Pills is surely beneficial.
When you llse weight fasxter if you had a headache the next time the cure wilol stick.
Also visit my blog pos acai beere detoxmax
Post a Comment