语言

FileNotFoundException.FileName 属性

定义

获取找不到的文件的名称。

public:
 property System::String ^ FileName { System::String ^ get(); };
public string FileName { get; }
public string? FileName { get; }
member this.FileName : string
Public ReadOnly Property FileName As String

属性值

文件的名称,或者 null 没有将文件名传递给此实例的构造函数。

注解

此属性为只读。

适用于

另请参阅