Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a property in a Web Service
Message
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00790056
Message ID:
00790077
Views:
16
This message has been marked as the solution to the initial question of the thread.
Hi Michel,

To add properties, you do this in code inside of the class you want to add them to.
public int Width
{
   get { return width; }
   set
   {
      if (value > 0)
         width = value;
      else
         throw new ArgumentOutOfRangeException("Width must be 1 or higher");
   }
}
>Ok, this one might be simple but after I made my Web Service to run successfully, I wanted to add a few properties and I really can't find how to do it. I see the Properties window and see that I have none so far. But, I really can't find where to go to start adding some.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform