2 // System.DirectoryServices.SortOption.cs
5 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 // (C) 2004 Andreas Nahr
11 using System.ComponentModel;
13 namespace System.DirectoryServices {
15 [TypeConverter (typeof (ExpandableObjectConverter))]
16 public class SortOption
18 private String propertyName;
19 private SortDirection direction;
25 public SortOption (String propertyName, SortDirection direction)
27 this.propertyName = propertyName;
28 this.direction = direction;
31 [DSDescription ("Name of propertion to be sorted on"),
33 public String PropertyName {
34 get { return propertyName; }
37 throw new ArgumentNullException ("value");
42 [DSDescription ("Whether the sort is ascending or descending"),
43 DefaultValue (SortDirection.Ascending)]
44 public SortDirection Direction {
45 get { return direction; }
46 set { direction = value; }