SaveRingtoneTask.Source Property

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

File path to the local copy of the audio file to be added to the ringtone directory.

Namespace:  Microsoft.Phone.Tasks
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Public Property Source As Uri
public Uri Source { get; set; }
<object Source="Uri" .../>

Property Value

Type: System..::.Uri
Returns Uri.

Remarks

Important Note:
  • Ringtone files must be of type MP3 or WMA.

  • Ringtone files must be less than 40 seconds in length.

  • Ringtone files must not have digital rights management (DRM) protection.

  • Ringtone files must be less than 1 MB in size.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

SaveRingtoneTask Class

Microsoft.Phone.Tasks Namespace

Other Resources

Launchers and Choosers for Windows Phone 8

How to use the save ringtone task for Windows Phone 8