StreamWriter.Null フィールド
アセンブリ: mscorlib (mscorlib.dll 内)


Null を使用すると、システム リソースを使用しない StreamWriter に出力をリダイレクトできます。
Null に対して StreamWriter.Write メソッドを呼び出した場合は、呼び出しが返されるだけでバッキング ストアにデータは書き込まれません。
このフィールドの使用方法の例については、下の例を参照してください。その他の一般的な I/O タスクまたは関連する I/O タスクの例を次の表に示します。
File.AppendText FileInfo.AppendText | |
FileInfo.Length | |
File.GetAttributes | |
File.SetAttributes | |

If Sw.Equals(StreamWriter.Null) Then Sw.WriteLine("The store can be written to, but not read from.") End If
if(sw.Equals(StreamWriter.Null)) { sw.WriteLine("The store can be written to, but not read from."); }

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に収録されているすべての辞書からStreamWriter.Null フィールドを検索する場合は、下記のリンクをクリックしてください。

- StreamWriter.Null フィールドのページへのリンク