Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2008

Tip: Looking for answers? Try searching our database.

Readonly property WCF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Niclas - 11 Mar 2008 10:18 GMT
Hi,

I am developing a service in WCF and am returing a complex object to the
consumer of the service. I would like some properties of this object to be
readonly but from what I understand readonly properties are not supported in
WCF. Is there a workaround for this, or do I need to make all properties
Writeable and manage this through error handling ?

Any advice would be appreciated

Regards

Niclas
Tiago Halm - 12 Mar 2008 00:01 GMT
Writable data or readonly data makes no sense. The WebService is purely
returning data to the client (hence the DataContract term). The concept of
"writing" does not exist. A client can only "write" by making calls to
operations on the server and sending data as the arguments of these
operations.

Tiago Halm

> Hi,
>
[quoted text clipped - 9 lines]
>
> Niclas

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.