Class MediaSource
Provides methods and properties to access the source or sources from which the media will be read.
public sealed class MediaSource
- Inheritance
-
MediaSource
- Inherited Members
Remarks
MediaSource provides access to the source or sources from which the media will be read. A source can be either the local device, or a device connected through Windows Media Connect.
Properties
MediaSourceType
Gets the MediaSourceType of this media source.
public MediaSourceType MediaSourceType { get; }
Property Value
Name
Gets the name of this media source.
public string Name { get; }
Property Value
Methods
GetAvailableMediaSources()
Gets the available media sources with which a media library can be constructed.
public static IList<MediaSource> GetAvailableMediaSources()
Returns
- IList<MediaSource>
This method will always return a single media source: the local device.