Partager via


HtmlObject.ConvertTo Method (Type, Boolean)

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

Converts the current object to a specified type. This method is not supported.

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

Syntax

'Declaration
Protected Friend Overrides Function ConvertTo ( _
    targetType As Type, _
    allowSerialization As Boolean _
) As Object
protected internal override Object ConvertTo(
    Type targetType,
    bool allowSerialization
)

Parameters

  • allowSerialization
    Type: System.Boolean
    true to allow JavaScript Object Notation (JSON) serialization; otherwise, false.

Return Value

Type: System.Object
None.

Exceptions

Exception Condition
ArgumentException

In all cases.

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.