quinta-feira, março 17, 2005

Overloading for WebMethods

MessageName
===========
This property useful when we want overloading the WebMethods.

For Example

< WebMethod() > _
Public Function SayHello(ByVal sName As String) As String
Return "Hi" & " " & sName
End Function

< WebMethod(MessageName:="SayHello") > _
Public Function SayHello()As String
Return "Hi Ragavan"
End Function


Restante artigo:
http://www.c-sharpcorner.com/
WebForms/WebServicesP3RSR.asp

Sem comentários: