TypeConverter.ConvertFromString Method

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

Converts the specified text to an object.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

Syntax

'Declaration
Public Function ConvertFromString ( _
    text As String _
) As Object
public Object ConvertFromString(
    string text
)

Parameters

  • text
    Type: System.String
    The text representation of the object to convert.

Return Value

Type: System.Object
An object that represents the converted text string.

Remarks

A call to this method forwards the call to ConvertFrom, with nulla null reference (Nothing in Visual Basic) passed for context and culture.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

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