Compartir a través de


LicenseAcquirer.AcquireLicenseAsync Method (array<Byte[])

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Starts the license acquisition process.

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

Syntax

'Declaration
Public Sub AcquireLicenseAsync ( _
    mediaHeader As Byte() _
)
public void AcquireLicenseAsync(
    byte[] mediaHeader
)

Parameters

  • mediaHeader
    Type: array<System.Byte[]
    The header that is used for the license acquisition.

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

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.