SortDescription(String, ListSortDirection) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the SortDescription structure.
public:
SortDescription(System::String ^ propertyName, System::ComponentModel::ListSortDirection direction);
public SortDescription (string propertyName, System.ComponentModel.ListSortDirection direction);
new System.ComponentModel.SortDescription : string * System.ComponentModel.ListSortDirection -> System.ComponentModel.SortDescription
Public Sub New (propertyName As String, direction As ListSortDirection)
Parameters
- propertyName
- String
The name of the property to sort the list by. If the collection contains strings or value types, set this parameter to the empty string (""
).
- direction
- ListSortDirection
The sort order.
Exceptions
The direction
parameter does not specify a valid value.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.