MonobjcMonobjc Documented Class Library
InitWithCapacity Method (numItems)
NamespacesMonobjc.FoundationNSMutableDictionaryInitWithCapacity(NSUInteger)

Initializes a newly allocated mutable dictionary, allocating enough memory to hold numItems entries.

Original signature is '- (id)initWithCapacity:(NSUInteger)numItems'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithCapacity(
	NSUInteger numItems
)
Public Overridable Function InitWithCapacity ( _
	numItems As NSUInteger _
) As Id
public:
virtual Id^ InitWithCapacity(
	NSUInteger numItems
)
Parameters
numItems (NSUInteger)
The initial capacity of the initialized dictionary.
Return Value
An initialized mutable dictionary, which might be different than the original receiver.
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)