Table of Contents

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 string

The name of the file that could not be found

Properties

Exists

Always false.

public bool Exists { get; }

Property Value

bool

IsDirectory

Always false.

public bool IsDirectory { get; }

Property Value

bool

LastModified

Returns MinValue.

public DateTimeOffset LastModified { get; }

Property Value

DateTimeOffset

Length

Always equals -1.

public long Length { get; }

Property Value

long

Name

The name of the file or directory, not including any path.

public string Name { get; }

Property Value

string

PhysicalPath

Always null.

public string PhysicalPath { get; }

Property Value

string

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.