MediaPlayer.GetScriptDescriptors Method

Retrieves properties from a MediaPlayer object that are passed to the Sys.UI.Silverlight.MediaPlayer client component that implements media player logic in the browser.

Namespace:  System.Web.UI.SilverlightControls
Assembly:  System.Web.Silverlight (in System.Web.Silverlight.dll)

Syntax

'Declaration
Protected Overrides Function GetScriptDescriptors As IEnumerable(Of ScriptDescriptor)
'Usage
Dim returnValue As IEnumerable(Of ScriptDescriptor)

returnValue = Me.GetScriptDescriptors()
protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors()

Return Value

Type: System.Collections.Generic.IEnumerable<ScriptDescriptor>
An array of type ScriptDescriptor.

Exceptions

Exception Condition
InvalidOperationException

The MediaDefinition property specifies an invalid location to a media definition file.

Platforms

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

See Also

Reference

MediaPlayer Class

MediaPlayer Members

System.Web.UI.SilverlightControls Namespace