Condividi tramite


MediaPlayer.SetFileSource(IStorageFile) Metodo

Definizione

Impostare l'origine multimediale su un file.

Nota

MediaPlayer.SetFileSource può essere modificato o non disponibile dopo Windows 10. Usare invece 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)

Parametri

file
IStorageFile

File di origine multimediale.

Attributi

Si applica a