PhysicalFileProvider Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Looks up files using the on-disk file system.
public ref class PhysicalFileProvider : IDisposable, Microsoft::Extensions::FileProviders::IFileProvider
public class PhysicalFileProvider : IDisposable, Microsoft.Extensions.FileProviders.IFileProvider
type PhysicalFileProvider = class
interface IFileProvider
interface IDisposable
Public Class PhysicalFileProvider
Implements IDisposable, IFileProvider
- Inheritance
-
PhysicalFileProvider
- Implements
When the environment variable "DOTNET_USE_POLLING_FILE_WATCHER" is set to "1" or "true", calls to Watch(String) will use PollingFileChangeToken.
Physical |
Initializes a new instance of a PhysicalFileProvider at the given root directory. |
Physical |
Initializes a new instance of a PhysicalFileProvider at the given root directory. |
Root |
Gets the root directory for this instance. |
Use |
Gets or sets a value that determines if this instance of PhysicalFileProvider actively polls for file changes. |
Use |
Gets or sets a value that determines if this instance of PhysicalFileProvider uses polling to determine file changes. |
Dispose() |
Disposes the provider. Change tokens may not trigger after the provider is disposed. |
Dispose(Boolean) |
Disposes the provider. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Enumerates a directory at the given path, if any. |
Get |
Locates a file at the given path by directly mapping path segments to physical directories. |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Watch(String) |
Creates a IChangeToken for the specified Globbing patterns are interpreted by Matcher. |
Продукт | Версии |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Отзыв о .NET
.NET — это проект с открытым исходным кодом. Выберите ссылку, чтобы оставить отзыв: