Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a property in a Web Service
Message
 
 
À
19/05/2003 14:49:10
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Divers
Thread ID:
00790056
Message ID:
00790144
Vues:
22
>So, basically, if I want a property to appear in the Property sheet, I need to add it as Cathi wrote. Doing otherwise, such as:
>
>
>Public Class WebService
>    Inherits System.Web.Services.WebService
>
>    Private cUrl As String = "http://www.levelextreme.com"
>    Private cUser As String = ""
>
>    <WebMethod()> _
>    Public Function HelloWorld(ByVal tcString As String) As String
>        Return tcString + cUrl + cUser
>    End Function
>
>End Class
>
>
>will simply make a variable available for the entire WS code handling but won't be interpreted as a property. Is that correct?

Correct. Those are fields in .NET parlance, not properties, because they don't get exposed. You would only get acces to those members inside the class, what's perfect for WS.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform