Compartir a través de


PlayToReceiver.StartAsync Método

Definición

Comience a recibir comandos de Play To.

public:
 virtual IAsyncAction ^ StartAsync() = StartAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction StartAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction StartAsync();
function startAsync()
Public Function StartAsync () As IAsyncAction

Devoluciones

Controlador asincrónico al que se llama cuando se completa la operación de inicio.

Atributos

Comentarios

Para obtener un ejemplo de creación de un receptor play to de software, consulte Conversión multimedia.

// Advertise the receiver on the local network and start receiving commands
await receiver.StartAsync();

// Prevent the screen from locking
if (display == null)
    display = new Windows.System.Display.DisplayRequest();
display.RequestActive();

StatusTextBlock.Text = "'" + receiver.FriendlyName + "' started.";
' Advertise the receiver on the local network and start receiving commands
Await receiver.StartAsync()

' Prevent the screen from locking
If display Is Nothing Then
    display = New Windows.System.Display.DisplayRequest()
    display.RequestActive()

    StatusTextBlock.Text = "'" & receiver.FriendlyName & "' started."
End If

Se aplica a

Consulte también