This documentation is archived and is not being maintained.

KeyValueSerializer.CanConvertFromString Method

Determines if the specified String can be convert to an instance of Key.

Namespace: System.Windows.Input
Assembly: WindowsBase (in windowsbase.dll)

public override bool CanConvertFromString (
	string value,
	IValueSerializerContext context
public boolean CanConvertFromString (
	String value, 
	IValueSerializerContext context
public override function CanConvertFromString (
	value : String, 
	context : IValueSerializerContext
) : boolean
You cannot use methods in XAML.



String to evaluate for conversion.


Context information that is used for conversion.

Return Value

true if the value can be converted; otherwise, false.

This method always returns true.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0