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

属性值

String

如果有,则为该文件的名称;如果未将任何文件名传递给此实例的构造函数,则为 null

注解

此属性为只读。

适用于

另请参阅