Class NotFoundFileInfo
- Namespace
- Acuit.Pinpoint.FileProviders
- Assembly
- Acuit.Pinpoint.Configuration.dll
Represents a non-existing file.
public class NotFoundFileInfo : IFileInfo
- Inheritance
-
NotFoundFileInfo
- Implements
- Inherited Members
Constructors
NotFoundFileInfo(string)
Initializes an instance of NotFoundFileInfo.
public NotFoundFileInfo(string name)
Parameters
name
stringThe name of the file that could not be found
Properties
Exists
Always false.
public bool Exists { get; }
Property Value
IsDirectory
Always false.
public bool IsDirectory { get; }
Property Value
LastModified
Returns MinValue.
public DateTimeOffset LastModified { get; }
Property Value
Length
Always equals -1.
public long Length { get; }
Property Value
Name
The name of the file or directory, not including any path.
public string Name { get; }
Property Value
PhysicalPath
Always null.
public string PhysicalPath { get; }
Property Value
Methods
CreateReadStream()
Always throws. A stream cannot be created for non-existing file.
public Stream CreateReadStream()
Returns
- Stream
Does not return
Exceptions
- FileNotFoundException
Always thrown.