NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Stack Constructor (Int32)

Initializes an empty Stack with the specified initial capacity or the default initial capacity, whichever is greater.

[Visual Basic]
Overloads Public Sub New( _
   ByVal initialCapacity As Integer _
)
[C#]
public Stack(
   int initialCapacity
);
[C++]
public: Stack(
   int initialCapacity
);
[JScript]
public function Stack(
   initialCapacity : int
);

Parameters

initialCapacity
The initial number of elements that the Stack can contain.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException initialCapacity is less than zero.

Remarks

The default initial capacity for a Stack is 10.

See Also

Stack Class | Stack Members | System.Collections Namespace | Stack Constructor Overload List