Returns by reference a C array of objects over which the sender should iterate, and as the return value the number of objects in the array.
Original signature is '- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len'
Available in Mac OS X v10.5 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual NSUInteger CountByEnumeratingWithStateObjectsCount( IntPtr state, IntPtr stackbuf, NSUInteger len )
Public Overridable Function CountByEnumeratingWithStateObjectsCount ( _ state As IntPtr, _ stackbuf As IntPtr, _ len As NSUInteger _ ) As NSUInteger
public: virtual NSUInteger CountByEnumeratingWithStateObjectsCount( IntPtr state, IntPtr stackbuf, NSUInteger len )
Parameters
- state (IntPtr)
- Context information that is used in the enumeration to, in addition to other possibilities, ensure that the collection has not been mutated.
- stackbuf (IntPtr)
- A C array of objects over which the sender is to iterate.
- len (NSUInteger)
- The maximum number of objects to return in stackbuf.
Return Value
The number of objects returned in stackbuf. Returns 0 when the iteration is finished.
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)