Microsoft Silverlight will reach end of support after October 2021. Learn more.
Converts the current scriptable object to a specified type.
Assembly: System.Windows.Browser (in System.Windows.Browser.dll)
'Declaration Public Function ConvertTo(Of T) As T
public T ConvertTo<T>()
The type to convert the current scriptable object to.
An object of type T.
The conversion failed or is not supported.
This method converts the scriptable object to the type specified by T.
Conversion operations differ depending on the underlying type of the scriptable object:
If the ManagedObject property is not nulla null reference (Nothing in Visual Basic), an attempt is made to cast the underlying managed object to type T. As a result, ConvertTo is an alternative to explicitly casting the ManagedObject property.
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.