Console.In プロパティ
アセンブリ: mscorlib (mscorlib.dll 内)

標準入力ストリームを表す TextReader オブジェクト。


Imports System Imports System.IO Class InTest Public Shared Sub Main() Dim tIn As TextReader = Console.In Dim tOut As TextWriter = Console.Out tOut.WriteLine("Hola Mundo!") tOut.Write("What is your name: ") Dim name As [String] = tIn.ReadLine() tOut.WriteLine("Buenos Dias, {0}!", name) End Sub 'Main End Class 'InTest
using System; using System.IO; class InTest { public static void Main() { TextReader tIn = Console.In; TextWriter tOut = Console.Out; tOut.WriteLine("Hola Mundo!"); tOut.Write("What is your name: "); String name = tIn.ReadLine(); tOut.WriteLine("Buenos Dias, {0}!", name); } }
using namespace System; using namespace System::IO; int main() { TextReader^ tIn = Console::In; TextWriter^ tOut = Console::Out; tOut->WriteLine( "Hola Mundo!" ); tOut->Write( "What is your name: " ); String^ name = tIn->ReadLine(); tOut->WriteLine( "Buenos Dias, {0}!", name ); }
import System.*; import System.IO.*; class InTest { public static void main(String[] args) { TextReader tIn = Console.get_In(); TextWriter tOut = Console.get_Out(); tOut.WriteLine("Hola Mundo!"); tOut.Write("What is your name: "); String name = tIn.ReadLine(); tOut.WriteLine("Buenos Dias, {0}!", name); } //main } //InTest

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からConsole.In プロパティを検索する場合は、下記のリンクをクリックしてください。

- Console.In プロパティのページへのリンク