(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.DirectoryServices / System.DirectoryServices / ResultPropertyValueCollection.cs
blob05b352889de61595477b4054995e2240ac1c1189
1 /******************************************************************************
2 * The MIT License
3 * Copyright (c) 2003 Novell Inc., www.novell.com
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the Software), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 * copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 * SOFTWARE.
22 *******************************************************************************/
25 // System.DirectoryServices.ResultPropertyValueCollection .cs
27 // Author:
28 // Sunil Kumar (sunilk@novell.com)
30 // (C) Novell Inc.
33 using System;
34 using System.Collections;
36 namespace System.DirectoryServices
38 /// <summary>
39 /// Contains the values of a SearchResult property.
40 /// </summary>
41 /// <remarks>
42 /// SearchResult instances are similar to DirectoryEntry instances. The
43 /// notable difference is that the DirectoryEntry retrieves its
44 /// information from the Active Directory hierarchy each time a new object
45 /// is accessed, whereas the data for the SearchResult is already
46 /// available in the SearchResultCollection that a DirectorySearcher
47 /// query returns. If you try to get a SearchResult property that your
48 /// query did not specify for retrieval, the property will not be
49 /// available.
50 /// </remarks>
51 public class ResultPropertyValueCollection : ReadOnlyCollectionBase
53 internal ResultPropertyValueCollection()
57 internal void Add (object component)
59 InnerList.Add (component);
62 internal void AddRange (object[] components)
64 InnerList.AddRange (components);
67 public virtual object this [int index]
69 get { return (object) InnerList[index]; }
72 public bool Contains (object value)
74 return InnerList.Contains (value);
77 public void CopyTo (object[] array, int index)
79 InnerList.CopyTo (array, index);
82 public int IndexOf (object value)
84 return InnerList.IndexOf (value);