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.

MediaLibraryExtensions.GetPath Method

Gets the path of the specified Picture.

public static string GetPath (
         Picture picture


Type: Picture
The picture for which the path is returned.

Return Value

Type: String
The path to the picture.

Use the GetPath method to provide a value for the FilePath property of the ShareMediaTask when the user wants to share a picture.

Namespace: Microsoft.Xna.Framework.Media.PhoneExtensions
Assembly: Microsoft.Xna.Framework.Media.PhoneExtensions (in

Windows Phone

Community Additions

© 2017 Microsoft