MediaElement.GetAsCastingSource Method

Definition

Returns the media element as a CastingSource.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.MediaElement.GetAsCastingSource.

public:
 virtual CastingSource ^ GetAsCastingSource() = GetAsCastingSource;
CastingSource GetAsCastingSource();
public CastingSource GetAsCastingSource();
function getAsCastingSource()
Public Function GetAsCastingSource () As CastingSource

Returns

CastingSource

The media element as a CastingSource.

Remarks

For more info about using MediaElement as a casting source, see Media casting.

Applies to

See also