|MediaLibrary.SavePicture (String, Byte)||Saves the image to the media library, and then returns that saved image as a picture object.|
|MediaLibrary.SavePicture (String, Stream)||Saves the image contained in the stream object to the media library, and then returns that saved image as a picture object.|
|InvalidOperationException||Exception that is thrown if SavePicture is called while the user is tethered to a computer running Zune client software.|
Capabilities for Windows Phone
If you use this API in your Windows Phone app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
|ID_CAP_MEDIALIB_PHOTO||Windows Phone 8|
|ID_CAP_MEDIALIB||Windows Phone OS 7.1|
For more info, see App capabilities and hardware requirements for Windows Phone.