MonobjcMonobjc Documented Class Library
CountForObject Method (anObject)
NamespacesMonobjc.FoundationNSCountedSetCountForObject(Id)

Returns the count associated with a given object in the set.

Original signature is '- (NSUInteger)countForObject:(id)anObject'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSUInteger CountForObject(
	Id anObject
)
Public Overridable Function CountForObject ( _
	anObject As Id _
) As NSUInteger
public:
virtual NSUInteger CountForObject(
	Id^ anObject
)
Parameters
anObject (Id)
The object for which to return the count.
Return Value
The count associated with anObject in the set, which can be thought of as the number of occurrences of anObject present in the set.
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)