| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function ThenBy( _ ByVal propertyName As String, _ Optional ByVal sortDirection As ListSortDirection _ ) As PropertySortSelector | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As PropertySortSelector Dim propertyName As String Dim sortDirection As ListSortDirection Dim value As PropertySortSelector value = instance.ThenBy(propertyName, sortDirection) | |
| C# | |
|---|---|
public PropertySortSelector ThenBy( string propertyName, ListSortDirection sortDirection ) | |
| C++/CLI | |
|---|---|
public: PropertySortSelector^ ThenBy( String^ propertyName, ListSortDirection sortDirection ) | |
Parameters
- propertyName
- sortDirection
| C# | Copy Code |
|---|---|
public void ThenBySample1() { // Sample showing sort by Country and CompanyName properties of Customer. var mgr = new DomainModelEntityManager(); var selector = new PropertySortSelector(typeof(Customer), "Country").ThenBy("CompanyName"); var results = mgr.Customers.OrderBySelector(selector).ToList(); } | |
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