MediaPlayer.SetFileSource(IStorageFile) Метод

Определение

Задайте для источника мультимедиа файл.

Примечание

MediaPlayer.SetFileSource может быть изменен или недоступен после Windows 10. Вместо этого используйте 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)

Параметры

file
IStorageFile

Исходный файл мультимедиа.

Атрибуты

Применяется к