Freigeben über


PlayToReceiver.StartAsync Methode

Definition

Beginnen Sie mit dem Empfang von "Play To"-Befehlen.

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

Gibt zurück

Ein asynchroner Handler, der aufgerufen wird, wenn der Startvorgang abgeschlossen ist.

Attribute

Hinweise

Ein Beispiel zum Erstellen eines Softwarewiedergabeempfängers finden Sie unter Medienumwandlung.

// 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

Gilt für:

Weitere Informationen