Export (0) Print
Expand All

ValueSerializer.ConvertFromString Method

Converts a String to an instance of the type that the implementation of ValueSerializer supports.

Namespace:  System.Windows.Markup
Assembly:  WindowsBase (in WindowsBase.dll)

public virtual Object ConvertFromString(
	string value,
	IValueSerializerContext context
You cannot use methods in XAML.


Type: System.String

The string to convert.

Type: System.Windows.Markup.IValueSerializerContext

Context information that is used for conversion.

Return Value

Type: System.Object
A new instance of the type that the implementation of ValueSerializer supports based on the supplied value.


value cannot be converted.

The base implementation always calls GetConvertFromException.

The base implementation of GetConvertFromException throws NotSupportedException.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

© 2015 Microsoft