Share via


MediaPlayer.SetFileSource(IStorageFile) Methode

Definition

Legen Sie die Medienquelle auf eine Datei fest.

Hinweis

MediaPlayer.SetFileSource kann nach Windows 10 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen MediaPlayer.Source .

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)

Parameter

file
IStorageFile

Die Medienquelldatei.

Attribute

Gilt für: