MediaPlayer.SetFileSource(IStorageFile) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the media source to a file.
Note
MediaPlayer.SetFileSource may be altered or unavailable after Windows 10. Use MediaPlayer.Source instead.
public:
virtual void SetFileSource(IStorageFile ^ file) = SetFileSource;
void SetFileSource(IStorageFile const& file);
/// [Windows.Foundation.Metadata.Deprecated("Use Source instead of SetFileSource. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
void SetFileSource(IStorageFile const& file);
public void SetFileSource(IStorageFile file);
[Windows.Foundation.Metadata.Deprecated("Use Source instead of SetFileSource. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
public void SetFileSource(IStorageFile file);
function setFileSource(file)
Public Sub SetFileSource (file As IStorageFile)
Parameters
- file
- IStorageFile
The media source file.
- Attributes