Dela via


MediaPlayer.SetUriSource(Uri) Method

Definition

Sets the path to the media.

Note

MediaPlayer.SetUriSource may be altered or unavailable after Windows 10. Use MediaPlayer.Source instead.

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

Parameters

value
Uri Uri

The path to the media.

Attributes

Applies to