次の方法で共有


FileNotFoundException.FileName プロパティ

見つからなかったファイルの名前を取得します。

Public ReadOnly Property FileName As String
[C#]
public string FileName {get;}
[C++]
public: __property String* get_FileName();
[JScript]
public function get FileName() : String;

プロパティ値

ファイル名を含んでいる String 。このインスタンスのコンストラクタにファイル名が渡されていない場合は null 参照 (Visual Basic では Nothing) 。

解説

このプロパティは読み取り専用です。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, Common Language Infrastructure (CLI) Standard

参照

FileNotFoundException クラス | FileNotFoundException メンバ | System.IO 名前空間 | 入出力操作 | ファイルからのテキストの読み取り | ファイルへのテキストの書き込み