Function

CFBagGetCount

Returns the number of values currently in a bag.

Declaration

CFIndex CFBagGetCount(CFBagRef theBag);

Parameters

theBag

The bag to examine.

Return Value

The number of values in theBag.

See Also

Examining a Bag

CFBagContainsValue

Reports whether or not a value is in a bag.

CFBagGetCountOfValue

Returns the number of times a value occurs in a bag.

CFBagGetValue

Returns a requested value from a bag.

CFBagGetValueIfPresent

Reports whether or not a value is in a bag, and returns that value indirectly if it exists.

CFBagGetValues

Fills a buffer with values from a bag.