Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Song.FromUri Method

Constructs a new Song object based on the specified URI.

Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public static Song FromUri (
         string name,
         Uri uri


Type: String
Name of the song.
Type: Uri
Uri object that represents the URI.

Return Value

Song object that can be used to play the song remotely.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

© 2017 Microsoft