Export (0) Print
Expand All

ScriptableMemberAttribute.EnableCreateableTypes Property

Silverlight

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)

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.

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.

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show:
© 2014 Microsoft