ScheduledActionService.Remove Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Removes the ScheduledAction with the specified name from the Scheduled Action Service.

Namespace: Microsoft.Phone.Scheduler
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Shared Sub Remove ( _
    name As String _
)
public static void Remove(
    string name
)

Parameters

  • name
    Type: System..::.String
    The name uniquely identifying the ScheduledAction to be removed.

Remarks

You can use the Find(String) method to verify that the specified name is registered with the service before calling Remove to remove it.

This method may throw one of the following exceptions.

InvalidOperationException

No Scheduled Action with the specified name is registered with the service.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

ScheduledActionService Class

Microsoft.Phone.Scheduler Namespace