public enum CaseSensitivity : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum CaseSensitivity Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum CaseSensitivity : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum CaseSensitivity Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
Insensitive | Comparison should be case-insensitive. |
Sensitive | Comparison should be case-sensitive. |
public RowCursor SortWorldCities(FeatureClass worldCitiesTable) { using (FeatureClassDefinition featureClassDefinition = worldCitiesTable.GetDefinition()) { Field countryField = featureClassDefinition.GetFields() .First(x => x.Name.Equals("COUNTRY_NAME")); Field cityNameField = featureClassDefinition.GetFields() .First(x => x.Name.Equals("CITY_NAME")); // Create SortDescription for Country field SortDescription countrySortDescription = new SortDescription(countryField); countrySortDescription.CaseSensitivity = CaseSensitivity.Insensitive; countrySortDescription.SortOrder = SortOrder.Ascending; // Create SortDescription for City field SortDescription citySortDescription = new SortDescription(cityNameField); citySortDescription.CaseSensitivity = CaseSensitivity.Insensitive; citySortDescription.SortOrder = SortOrder.Ascending; // Create our TableSortDescription TableSortDescription tableSortDescription = new TableSortDescription( new List<SortDescription>() { countrySortDescription, citySortDescription }); return worldCitiesTable.Sort(tableSortDescription); } }
System.Object
System.ValueType
System.Enum
ArcGIS.Core.Data.CaseSensitivity
Target Platforms: Windows 11, Windows 10, Windows 8.1