Freigeben über


ScriptableMemberAttribute.EnableCreateableTypes Property

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

Controls the generation of Silverlight plug-in helper methods that can be used to create wrappers around managed objects.

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

Syntax

'Declaration
Public Property EnableCreateableTypes As Boolean
public bool EnableCreateableTypes { get; set; }

Property Value

Type: System.Boolean
true if the HTML bridge feature should automatically generate helper methods in the scope of the registered scriptable type; otherwise, false. The default is true.

Remarks

By default, the HTML Bridge exposes helper methods. These methods can be used to return managed wrappers around managed types that are used as input values or return parameters in the scope of the registered scriptable entry point.

If you set this property to false, you must use the RegisterCreateableType method and the Silverlight plug-in's Content.services.createObject and Content.services.createManagedObject methods to create script wrappers for managed types.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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