CancelAsync Method
Collapse the table of content
Expand the table of content

DomainAcquirer.CancelAsync Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Called to cancel an ongoing domain operation.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public Sub CancelAsync

ExceptionCondition
InvalidOperationException

If no domain operation is in progress.

Method used to cancel an ongoing domain operation. If the domain operation is a domain join and is occurring via a LicenseAcquirer, calling this method will also cancel license acquisition (and, indirectly, playback will fail with a license acquisition failure error message if license acquisition was occurring via a MediaElement). For domain leave, this method only cancels the asynchronous operation informing the server that the client has left the domain. Refer to LeaveDomainAsync for more information.

Version Notes

Windows Phone

This member is not implemented in Windows Phone OS 7.1.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft