BackgroundTaskBuilder.Validate Method
Definition
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.
Validates the background task that has been configured with the SetTrigger method. This method is called by the system to determine whether the background task meets the requirements to run.
public:
virtual bool Validate() = Validate;
/// [Windows.Foundation.Metadata.Experimental]
bool Validate();
bool Validate();
[Windows.Foundation.Metadata.Experimental]
public bool Validate();
public bool Validate();
function validate()
Public Function Validate () As Boolean
Returns
Boolean
bool
Returns true
if the background task meets the requirements to run; otherwise, false
.
- Attributes
Windows requirements
Device family |
Windows 11 Insider Preview (introduced in 10.0.23504.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v15.0)
|