CastingDevice Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a physical device that is capable of supporting casting connections and rendering media content sent to it.
public ref class CastingDevice sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CastingDevice final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CastingDevice
Public NotInheritable Class CastingDevice
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
Get an instance of this class by accessing the CastingConnection.Device or VastingDeviceSelectedEventArgs.SelectedCastingDevice property.
Properties
FriendlyName |
A human-readable name for the device, retrieved from the device itself. |
Icon |
An icon representing the device. |
Id |
The device ID. This is the same ID used with Windows.Devices.Enumeration APIs. |
Methods
CreateCastingConnection() |
Creates a new CastingConnection object. This method does not establish a connection to the casting device. |
DeviceInfoSupportsCastingAsync(DeviceInformation) |
Indicates whether the given device (a DeviceInformation object) supports casting. |
FromIdAsync(String) |
Gets a CastingDevice object for a given a device ID (acquired from a query using the Windows.Devices.Enumeration APIs). |
GetDeviceSelector(CastingPlaybackTypes) |
Gets an AQS filter string to be used with the Windows.Devices.Enumeration APIs for a given CastingPlaybackTypes. |
GetDeviceSelectorFromCastingSourceAsync(CastingSource) |
Gets an AQS filter string to be used with the Windows.Devices.Enumeration APIs for a given CastingSource. |
GetSupportedCastingPlaybackTypesAsync() |
Gets the media types supported by the device. containing |