Bagikan melalui


LicenseManagement.SelectLicenses Method (Guid)

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

Returns licenses from the persistent license store on the client based on the provided key identifier.

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

Syntax

'Declaration
Public Shared Function SelectLicenses ( _
    keyId As Guid _
) As IEnumerable(Of MediaLicense)
public static IEnumerable<MediaLicense> SelectLicenses(
    Guid keyId
)

Parameters

  • keyId
    Type: System.Guid
    The key ID for the license to return.

Return Value

Type: System.Collections.Generic.IEnumerable<MediaLicense>
The licenses from the persistent license store on the client based on the provided key identifier. If no IBX is present on the system, it is assumed the user has no licenses, and an empty enumerator is returned from this method call.

Remarks

NoteNote:

The overloads of the SelectLicense method do not work unless the user is running the Silverlight application out-of-browser and is using elevated trust.

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.