Windows Dev Center

ScheduledAction.Name Property

Gets the name of the scheduled action.

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

public string Name { get; internal set; }

Property Value

Type: System.String
Type: String. The name of the scheduled action.

ExceptionCondition
ArgumentNullException

The name string cannot be null.

ArgumentOutOfRangeException

The name string cannot be zero length. The maximum length of the name string is 63 characters. The string can contain only printable ASCII characters (character values between 32 and 126).

The Name property is used by the system to identify scheduled actions, so the value must be unique per application. Attempting to add a notification with a name that already exists for your application in the system will throw an exception.

Set the name of a system notification by providing it to the constructor for the derived types, Alarm, Reminder, PeriodicTask, or ResourceIntensiveTask. The maximum length of the name string is 63 characters. The string can contain only printable ASCII characters (character values between 32 and 126).

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2015 Microsoft