Conversions.FallbackUserDefinedConversion Method

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

Note: This API is now obsolete.

Converts an object to the specified type.

Namespace:  Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Syntax

'Declaration
<DebuggerHiddenAttribute> _
<ObsoleteAttribute("do not use this method", True)> _
<DebuggerStepThroughAttribute> _
Public Shared Function FallbackUserDefinedConversion ( _
    Expression As Object, _
    TargetType As Type _
) As Object
[DebuggerHiddenAttribute]
[ObsoleteAttribute("do not use this method", true)]
[DebuggerStepThroughAttribute]
public static Object FallbackUserDefinedConversion(
    Object Expression,
    Type TargetType
)

Parameters

  • TargetType
    Type: System.Type
    The type to which to convert the object.

Return Value

Type: System.Object
An object of the specified target type.

Version Information

Silverlight

Obsolete (does not compile) in 4 and later

Platforms

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