CompositeFileProvider.GetFileInfo(String) Method

Definition

Locates a file at the given path.

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

The path that identifies the file.

Returns

The file information. Caller must check Exists property. This will be the first existing IFileInfo returned by the provided IFileProvider or a not found IFileInfo if no existing files is found.

Implements

Remarks

The caller must check the Exists property. This method returns the first existing IFileInfo returned by the provided IFileProvider, or a NotFoundFileInfo if no existing files are found.

Applies to