Edit

Share via


BackgroundTaskHelper.GetBackgroundTask Method

Definition

Overloads

GetBackgroundTask(String)

Returns the registered background task of the given type.

GetBackgroundTask(Type)

Returns the registered background task of the given type.

GetBackgroundTask(String)

Source:
BackgroundTaskHelper.cs
Source:
BackgroundTaskHelper.cs
Source:
BackgroundTaskHelper.cs

Returns the registered background task of the given type.

public static Windows.ApplicationModel.Background.IBackgroundTaskRegistration GetBackgroundTask(string backgroundTaskName);
static member GetBackgroundTask : string -> Windows.ApplicationModel.Background.IBackgroundTaskRegistration
Public Shared Function GetBackgroundTask (backgroundTaskName As String) As IBackgroundTaskRegistration

Parameters

backgroundTaskName
String

Name of the background task class

Returns

Windows.ApplicationModel.Background.IBackgroundTaskRegistration

The registered background task if it exists; otherwise, null.

Applies to

GetBackgroundTask(Type)

Source:
BackgroundTaskHelper.cs
Source:
BackgroundTaskHelper.cs
Source:
BackgroundTaskHelper.cs

Returns the registered background task of the given type.

public static Windows.ApplicationModel.Background.IBackgroundTaskRegistration GetBackgroundTask(Type backgroundTaskType);
static member GetBackgroundTask : Type -> Windows.ApplicationModel.Background.IBackgroundTaskRegistration
Public Shared Function GetBackgroundTask (backgroundTaskType As Type) As IBackgroundTaskRegistration

Parameters

backgroundTaskType
Type

Type of the background task class. This class has to implement IBackgroundTask

Returns

Windows.ApplicationModel.Background.IBackgroundTaskRegistration

The registered background task if it exists; otherwise, null.

Applies to