Delen via


BackgroundTaskBuilder.Validate Method

Definition

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)

Applies to