WebClient.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. //
  2. // System.Net.WebClient
  3. //
  4. // Author:
  5. // Lawrence Pit ([email protected])
  6. //
  7. using System;
  8. using System.Collections;
  9. using System.Collections.Specialized;
  10. using System.ComponentModel;
  11. using System.IO;
  12. using System.Runtime.InteropServices;
  13. using System.Runtime.Serialization;
  14. namespace System.Net
  15. {
  16. [ComVisible(true)]
  17. public sealed class WebClient : Component
  18. {
  19. // Constructors
  20. public WebClient ()
  21. {
  22. }
  23. // Properties
  24. [MonoTODO]
  25. public string BaseAddress {
  26. get { throw new NotImplementedException (); }
  27. set { throw new NotImplementedException (); }
  28. }
  29. [MonoTODO]
  30. public ICredentials Credentials {
  31. get { throw new NotImplementedException (); }
  32. set { throw new NotImplementedException (); }
  33. }
  34. [MonoTODO]
  35. public WebHeaderCollection Headers {
  36. get { throw new NotImplementedException (); }
  37. set { throw new NotImplementedException (); }
  38. }
  39. [MonoTODO]
  40. public NameValueCollection QueryString {
  41. get { throw new NotImplementedException (); }
  42. set { throw new NotImplementedException (); }
  43. }
  44. [MonoTODO]
  45. public WebHeaderCollection ResponseHeaders {
  46. get { throw new NotImplementedException (); }
  47. }
  48. // Methods
  49. [MonoTODO]
  50. public byte [] DownloadData (string address)
  51. {
  52. throw new NotImplementedException ();
  53. }
  54. [MonoTODO]
  55. public void DownloadFile (string address, string fileName)
  56. {
  57. throw new NotImplementedException ();
  58. }
  59. [MonoTODO]
  60. public Stream OpenRead (string address)
  61. {
  62. throw new NotImplementedException ();
  63. }
  64. public Stream OpenWrite (string address)
  65. {
  66. return OpenWrite (address, "POST");
  67. }
  68. [MonoTODO]
  69. public Stream OpenWrite (string address, string method)
  70. {
  71. throw new NotImplementedException ();
  72. }
  73. public byte [] UploadData (string address, byte [] data)
  74. {
  75. return UploadData (address, "POST", data);
  76. }
  77. [MonoTODO]
  78. public byte [] UploadData (string address, string method, byte [] data)
  79. {
  80. throw new NotImplementedException ();
  81. }
  82. public byte [] UploadFile (string address, string fileName)
  83. {
  84. return UploadFile (address, "POST", fileName);
  85. }
  86. [MonoTODO]
  87. public byte[] UploadFile (string address, string method, string fileName)
  88. {
  89. throw new NotImplementedException ();
  90. }
  91. public byte[] UploadValues (string address, NameValueCollection data)
  92. {
  93. return UploadValues (address, "POST", data);
  94. }
  95. [MonoTODO]
  96. public byte[] UploadValues (string address, string method, NameValueCollection data)
  97. {
  98. throw new NotImplementedException ();
  99. }
  100. }
  101. }