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

LicenseAcquirer.CancelAsync Method

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

Cancels a license acquisition.

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

'Declaration
Public Sub CancelAsync

ExceptionCondition
InvalidOperationException

If no license acquisition is in progress.

This method is called to cancel a license acquisition. If the license acquisition is occurring via a MediaElement, calling this method causes playback to fail with a "license acquisition failure" error. If domain acquisition is occurring via an automatic domain join, this method also cancels that domain acquisition.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft