次の方法で共有


LicenseManagement.SelectLicenses Method (Stream)

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

Returns licenses from the persistent license store on the client based on a media stream, which contains a content header.

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

Syntax

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

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<MediaLicense>
The licenses from the persistent license store on the client based on a media stream, which contains a content header. 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.