ContextStack.Push(Object) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 개체를 스택에 푸시하거나 배치합니다.
public:
void Push(System::Object ^ context);
public void Push(object context);
member this.Push : obj -> unit
Public Sub Push (context As Object)
매개 변수
- context
- Object
스택에 푸시할 컨텍스트 개체입니다.
예외
context은 null입니다.
예제
다음 코드 예제에서는 값을 .에 푸시하는 방법을 보여 줍니다 ContextStack.
// Push ten items on to the stack and output the value of each.
for ( int number = 0; number < 10; number++ )
{
Console::WriteLine( "Value pushed to stack: {0}", number );
stack->Push( number );
}
// Push ten items on to the stack and output the value of each.
for( int number = 0; number < 10; number ++ )
{
Console.WriteLine( "Value pushed to stack: "+number.ToString() );
stack.Push( number );
}
' Push ten items on to the stack and output the value of each.
Dim number As Integer
For number = 0 To 9
Console.WriteLine(("Value pushed to stack: " + number.ToString()))
stack.Push(number)
Next number