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.Push

Inserts an object at the top of the Stack.

[Visual Basic]
Overridable Public Sub Push( _
   ByVal obj As Object _
)
[C#]
public virtual void Push(
   object obj
);
[C++]
public: virtual void Push(
   Object* obj
);
[JScript]
public function Push(
   obj : Object
);

Parameters

obj
The Object to push onto the Stack.

Return Value

None.

Remarks

This method can be overridden by a derived class.

Stack is implemented as a circular buffer. Push is an O(n) operation; Pop is an O(1) operation.

a null reference (in Visual Basic Nothing) can be pushed onto the Stack as a placeholder, if needed. It occupies a slot in the stack and is treated like any object.

See Also

Stack Class | Stack Members | System.Collections Namespace | Peek | Pop