Condividi tramite


MediaPlayer.SetMediaSource(IMediaSource) Metodo

Definizione

Imposta l'origine multimediale per la riproduzione.

Nota

MediaPlayer.SetMediaSource può essere modificato o non disponibile dopo Windows 10. Usare invece MediaPlayer.Source .

public:
 virtual void SetMediaSource(IMediaSource ^ source) = SetMediaSource;
void SetMediaSource(IMediaSource const& source);
/// [Windows.Foundation.Metadata.Deprecated("Use Source instead of SetMediaSource.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
void SetMediaSource(IMediaSource const& source);
public void SetMediaSource(IMediaSource source);
[Windows.Foundation.Metadata.Deprecated("Use Source instead of SetMediaSource.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
public void SetMediaSource(IMediaSource source);
function setMediaSource(source)
Public Sub SetMediaSource (source As IMediaSource)

Parametri

source
IMediaSource

Origine multimediale per la riproduzione.

Attributi

Si applica a