PageRenderTime 47ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/mcs/class/System.DirectoryServices.Protocols/System.DirectoryServices.Protocols/DsmlRequestDocument.cs

https://bitbucket.org/danipen/mono
C# | 193 lines | 128 code | 37 blank | 28 comment | 0 complexity | 6a64be66197691531dc19d3e11885127 MD5 | raw file
Possible License(s): Unlicense, Apache-2.0, LGPL-2.0, MPL-2.0-no-copyleft-exception, CC-BY-SA-3.0, GPL-2.0
  1. //
  2. // DsmlRequestDocument.cs
  3. //
  4. // Author:
  5. // Atsushi Enomoto <atsushi@ximian.com>
  6. //
  7. // Copyright (C) 2009 Novell, Inc.
  8. //
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. using System;
  30. using System.Collections;
  31. using System.Xml;
  32. namespace System.DirectoryServices.Protocols
  33. {
  34. [MonoTODO]
  35. public class DsmlRequestDocument : DsmlDocument, IList, ICollection, IEnumerable
  36. {
  37. IList list = new ArrayList ();
  38. internal DsmlRequestDocument ()
  39. {
  40. }
  41. public DsmlDocumentProcessing DocumentProcessing { get; set; }
  42. public DsmlErrorProcessing ErrorProcessing { get; set; }
  43. public override XmlDocument ToXml ()
  44. {
  45. throw new NotImplementedException ();
  46. }
  47. public int Count {
  48. get { return list.Count; }
  49. }
  50. protected bool IsFixedSize {
  51. get { return list.IsFixedSize; }
  52. }
  53. protected bool IsReadOnly {
  54. get { return list.IsReadOnly; }
  55. }
  56. protected bool IsSynchronized {
  57. get { return list.IsSynchronized; }
  58. }
  59. public DirectoryRequest this [int index] {
  60. get { return (DirectoryRequest) list [index]; }
  61. set { list [index] = value; }
  62. }
  63. public string RequestId { get; set; }
  64. public DsmlResponseOrder ResponseOrder { get; set; }
  65. protected object SyncRoot {
  66. get { return list.SyncRoot; }
  67. }
  68. int ICollection.Count {
  69. get { return Count; }
  70. }
  71. bool ICollection.IsSynchronized {
  72. get { return IsSynchronized; }
  73. }
  74. object ICollection.SyncRoot {
  75. get { return SyncRoot; }
  76. }
  77. bool IList.IsFixedSize {
  78. get { return IsFixedSize; }
  79. }
  80. bool IList.IsReadOnly {
  81. get { return IsReadOnly; }
  82. }
  83. object IList.this [int index] {
  84. get { return this [index]; }
  85. set { this [index] = (DirectoryRequest) value; }
  86. }
  87. public int Add (DirectoryRequest request)
  88. {
  89. throw new NotImplementedException ();
  90. }
  91. public void Clear ()
  92. {
  93. throw new NotImplementedException ();
  94. }
  95. public bool Contains (DirectoryRequest value)
  96. {
  97. throw new NotImplementedException ();
  98. }
  99. public void CopyTo (DirectoryRequest [] value, int i)
  100. {
  101. throw new NotImplementedException ();
  102. }
  103. public IEnumerator GetEnumerator ()
  104. {
  105. throw new NotImplementedException ();
  106. }
  107. public int IndexOf (DirectoryRequest value)
  108. {
  109. throw new NotImplementedException ();
  110. }
  111. public void Insert (int index, DirectoryRequest value)
  112. {
  113. throw new NotImplementedException ();
  114. }
  115. public void Remove (DirectoryRequest value)
  116. {
  117. throw new NotImplementedException ();
  118. }
  119. public void RemoveAt (int index)
  120. {
  121. throw new NotImplementedException ();
  122. }
  123. void ICollection.CopyTo (Array value, int i)
  124. {
  125. CopyTo ((DirectoryRequest []) value, i);
  126. }
  127. int IList.Add (object request)
  128. {
  129. return Add ((DirectoryRequest) request);
  130. }
  131. void IList.Clear ()
  132. {
  133. Clear ();
  134. }
  135. bool IList.Contains (object value)
  136. {
  137. return Contains ((DirectoryRequest) value);
  138. }
  139. int IList.IndexOf (object value)
  140. {
  141. return IndexOf ((DirectoryRequest) value);
  142. }
  143. void IList.Insert (int index, object value)
  144. {
  145. Insert (index, (DirectoryRequest) value);
  146. }
  147. void IList.Remove (object value)
  148. {
  149. Remove ((DirectoryRequest) value);
  150. }
  151. void IList.RemoveAt (int index)
  152. {
  153. RemoveAt (index);
  154. }
  155. }
  156. }