BackgroundTaskHelper.GetBackgroundTask 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.
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
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
The registered background task if it exists; otherwise, null.