PlayToReceiver.StartAsync Method
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.
Start receiving Play To commands.
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
Returns
An asynchronous handler that's called when the start operation is complete.
- Attributes
Remarks
For an example of creating a software Play To receiver, see Media casting.
// 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