Advertisement
masyanto

AllService.vb

Apr 20th, 2020
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.82 KB | None | 0 0
  1. ' NOTE: You can use the "Rename" command on the context menu to change the interface name "IService1" in both code and config file together.
  2. <ServiceContract()>
  3. Public Interface AllService
  4.  
  5.     <OperationContract()>
  6.     Function GetData(ByVal value As Integer) As String
  7.  
  8.     <OperationContract()>
  9.     Function GetDataUsingDataContract(ByVal composite As CompositeType) As CompositeType
  10.  
  11.     ' TODO: Add your service operations here
  12.     Function Tambah(ByVal param1 As String, ByVal param2 As String) As String
  13. End Interface
  14.  
  15. ' Use a data contract as illustrated in the sample below to add composite types to service operations.
  16.  
  17. <DataContract()>
  18. Public Class CompositeType
  19.  
  20.     <DataMember()>
  21.     Public Property BoolValue() As Boolean
  22.  
  23.     <DataMember()>
  24.     Public Property StringValue() As String
  25.  
  26. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement