ContextStack.Push メソッドとは何? わかりやすく解説 Weblio辞書 (original) (raw)
指定したオブジェクトをスタックにプッシュ (格納) します。
名前空間: System.ComponentModel.Design.Serialization
アセンブリ: System (system.dll 内)
構文
Public Sub Push ( _ context As Object _ )
Dim instance As ContextStack Dim context As Object
instance.Push(context)
public void Push ( Object context )
public: void Push ( Object^ context )
public void Push ( Object context )
public function Push ( context : Object )
| 例外の種類 | 条件 |
|---|---|
| ArgumentNullException | context が null 参照 (Visual Basic では Nothing) です。 |
ContextStack に値をプッシュするコード例を次に示します。
' 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
// 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. for ( int number = 0; number < 10; number++ ) { Console::WriteLine( "Value pushed to stack: {0}", number ); stack->Push( number ); }
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
.NET Framework
サポート対象 : 2.0、1.1、1.0
関連項目
ContextStack クラス
ContextStack メンバ
System.ComponentModel.Design.Serialization 名前空間