IdeaBlade DevForce 2010 Help Reference
ThenBy(PropertySortSelector) Method
See Also  Example Send Feedback
IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > PropertySortSelector Class > ThenBy Method : ThenBy(PropertySortSelector) Method



propertySortSelector
Returns a new PropertySortSelector with the additional sort criteria to this propertySortSelector added.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ThenBy( _
   ByVal propertySortSelector As PropertySortSelector _
) As PropertySortSelector
Visual Basic (Usage)Copy Code
Dim instance As PropertySortSelector
Dim propertySortSelector As PropertySortSelector
Dim value As PropertySortSelector
 
value = instance.ThenBy(propertySortSelector)

Parameters

propertySortSelector

Example

C#Copy Code
public void ThenBySample2() {
  // Sample showing sort by Country and CompanyName properties of Customer.
  var mgr = new DomainModelEntityManager();
  var selector1 = new PropertySortSelector(typeof(Customer), "Country");
  var selector2 = new PropertySortSelector(typeof(Customer), "CompanyName");
  var combinedSelector = selector1.ThenBy(selector2);
  var results = mgr.Customers.OrderBySelector(combinedSelector).ToList();
}

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.