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:
00790226
Views:
20
Michel,

As Martin pointed out, you have to code this.

>>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");
>>   }
>>}
>>
>
>I've been trying to find how to do that with the Properties window on the right and no wonder why I didn't find it. So, am I understanding correclty that we cannot add a property such as we do in VFP by using the visual interface?
-----------------------------------------

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