MyProfileService.asmx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <%@ WebService Language="C#" Class="MyProfileService" %>
  2. using System.Web.Services;
  3. using System.Collections.Generic;
  4. using System.Web.Script.Services;
  5. [ScriptService]
  6. public class MyProfileService : System.Web.Services.WebService
  7. {
  8. // Returns a dictionary containing a name-value
  9. // pair for all profile properties enabled for
  10. // read access found on the current users profile.
  11. [WebMethod]
  12. public IDictionary<string, object> GetAllPropertiesForCurrentUser()
  13. {
  14. //Place code here.
  15. return null;
  16. }
  17. // Given an array of one or more property names,
  18. // returns a dictionary containing a name-value pair
  19. // for each corresponding property found on the current
  20. // users profile that are enabled for read access.
  21. [WebMethod]
  22. public IDictionary<string, object> GetPropertiesForCurrentUser(string[] properties)
  23. {
  24. //Place code here.
  25. return null;
  26. }
  27. // Given a dictionary with one or more name-value pairs,
  28. // sets the values onto the corresponding properties of
  29. // the current users profile. The method returns the count
  30. // of properties that were able to be updated.
  31. [WebMethod]
  32. public int SetPropertiesForCurrentUser(IDictionary<string, object> values)
  33. {
  34. //Place code here.
  35. return 0;
  36. }
  37. }