LicenseAcquirer.AcquireLicenseAsync Method (Stream)

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

Starts the license acquisition process by specifying a media stream.

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

Syntax

Public Sub AcquireLicenseAsync ( _
    mediaStream As Stream _
)
public void AcquireLicenseAsync(
    Stream mediaStream
)

Parameters

  • mediaStream
    Type: System.IO..::.Stream
    The stream that is used for the license acquisition. The stream must be an ASF media stream.

Exceptions

Exception Condition
InvalidOperationException

If this method is called when an existing license acquisition attempt is already in progress on that instance of the class.

InvalidOperationException

If this LicenseAcquirer was previously used for a MediaElement base license acquisition.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

LicenseAcquirer Class

AcquireLicenseAsync Overload

System.Windows.Media Namespace