ScriptObject.ConvertTo Method (Type, Boolean)
Silverlight
Converts the current scriptable object to a specified type, with serialization support.
Namespace: System.Windows.Browser
Assembly: System.Windows.Browser (in System.Windows.Browser.dll)
Parameters
- targetType
- Type: System.Type
The type to convert the current scriptable object to.
- allowSerialization
- Type: System.Boolean
A flag which enables the current scriptable object to be serialized.
| Exception | Condition |
|---|---|
| ArgumentException | The conversion failed or is not supported. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.