PhysicalFileProvider.GetFileInfo(String) Method

Definition

Locate a file at the given path by directly mapping path segments to physical directories.

public:
 virtual Microsoft::Extensions::FileProviders::IFileInfo ^ GetFileInfo(System::String ^ subpath);
public Microsoft.Extensions.FileProviders.IFileInfo GetFileInfo (string subpath);
abstract member GetFileInfo : string -> Microsoft.Extensions.FileProviders.IFileInfo
override this.GetFileInfo : string -> Microsoft.Extensions.FileProviders.IFileInfo
Public Function GetFileInfo (subpath As String) As IFileInfo

Parameters

subpath
String

A path under the root directory

Returns

The file information. Caller must check Exists property.

Implements

Applies to