ContextStack.Pop Método

Definición

Quita el objeto actual de la pila y devuelve su valor.

public:
 System::Object ^ Pop();
public object Pop ();
public object? Pop ();
member this.Pop : unit -> obj
Public Function Pop () As Object

Devoluciones

El objeto quitado de la pila; null si no hay objetos en la pila.

Ejemplos

En el ejemplo de código siguiente se muestra cómo quitar un valor de .ContextStack

// Pop each item off the stack.
Object^ item = nullptr;
while ( (item = stack->Pop()) != 0 )
   Console::WriteLine( "Value popped from stack: {0}", item );
// Pop each item off the stack.
object item = null;
while( (item = stack.Pop()) != null )
    Console.WriteLine( "Value popped from stack: "+item.ToString() );
' Pop each item off the stack.        
Dim item As Object = stack.Pop()
While item IsNot Nothing
    Console.WriteLine(("Value popped from stack: " + item.ToString()))
    item = stack.Pop()
End While

Se aplica a