Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
protected internal virtual Object ConvertTo(
	Type targetType,
	bool allowSerialization
)

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.

Return Value

Type: System.Object
An object of type targetType.
ExceptionCondition
ArgumentException

The conversion failed or is not supported.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.