MonobjcMonobjc Documented Class Library
SortDescriptorWithKeyAscending Method (key, ascending)
NamespacesMonobjc.FoundationNSSortDescriptorSortDescriptorWithKeyAscending(NSString, Boolean)

Creates and returns an NSSortDescriptor with the specified key and ordering.

Original signature is '+ (id)sortDescriptorWithKey:(NSString *)key ascending:(BOOL)ascending'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSSortDescriptor SortDescriptorWithKeyAscending(
	NSString key,
	bool ascending
)
Public Shared Function SortDescriptorWithKeyAscending ( _
	key As NSString, _
	ascending As Boolean _
) As NSSortDescriptor
public:
static NSSortDescriptor^ SortDescriptorWithKeyAscending(
	NSString^ key, 
	bool ascending
)
Parameters
key (NSString)
The property key to use when performing a comparison. In the comparison, the property is accessed using key-value coding (see Key-Value Coding Programming Guide).
ascending (Boolean)
YES if the receiver specifies sorting in ascending order, otherwise NO.
Return Value
An NSSortDescriptor initialized with the specified key and ordering.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)