Share via


Silverlight.GetScriptDescriptors Method

Retrieves properties from a Silverlight object that are passed to the client component in the browser.

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

Syntax

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

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

Return Value

Type: System.Collections.Generic.IEnumerable<ScriptDescriptor>
An array that contains one ScriptControlDescriptor object.

Exceptions

Exception Condition
InvalidOperationException

The ScriptControlDescriptor is nulla null reference (Nothing in Visual Basic) or an empty string.

Remarks

The value that is returned is used to create the client type.

Platforms

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

See Also

Reference

Silverlight Class

Silverlight Members

System.Web.UI.SilverlightControls Namespace