PollingFileChangeToken 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.
A change token that polls for file system changes.
public ref class PollingFileChangeToken : Microsoft::Extensions::Primitives::IChangeToken
public class PollingFileChangeToken : Microsoft.Extensions.Primitives.IChangeToken
type PollingFileChangeToken = class
interface IChangeToken
Public Class PollingFileChangeToken
Implements IChangeToken
- Inheritance
-
PollingFileChangeToken
- Implements
Polling occurs every 4 seconds.
This change token does not raise any change callbacks. Callers should watch for HasChanged to turn from false
to true
and dispose the token after this happens.
Polling |
Initializes a new instance of PollingFileChangeToken that polls the specified file for changes as determined by LastWriteTimeUtc. |
Active |
Gets a value that's always |
Has |
Gets a value that indicates whether the file has changed since the change token was created. |
Register |
Does not actually register callbacks. |
Proizvod | Verzije |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET povratne informacije
.NET je projekat otvorenog koda. Odaberite vezu za pružanje povratnih informacija: