MonobjcMonobjc Documented Class Library
ValueOfAttributeForResultAtIndex Method (attributeName, index)
NamespacesMonobjc.FoundationNSMetadataQueryValueOfAttributeForResultAtIndex(NSString, NSUInteger)

Returns the value for the attribute name attrName at the index in the results specified by idx.

Original signature is '- (id)valueOfAttribute:(NSString *)attributeName forResultAtIndex:(NSUInteger)index'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id ValueOfAttributeForResultAtIndex(
	NSString attributeName,
	NSUInteger index
)
Public Overridable Function ValueOfAttributeForResultAtIndex ( _
	attributeName As NSString, _
	index As NSUInteger _
) As Id
public:
virtual Id^ ValueOfAttributeForResultAtIndex(
	NSString^ attributeName, 
	NSUInteger index
)
Parameters
attributeName (NSString)
The attribute of the result object at index being inquired about. The attribute must be specified in setValueListAttributes:, as a sorting key in a specified sort descriptor, or as one of the grouping attributes specified set for the query.
index (NSUInteger)
Index of the desired return object in the query results array.
Return Value
Value for attributeName in the result object at index in the query result array.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

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