This documentation is archived and is not being maintained.

InputScopeConverter.CanConvertTo Method (ITypeDescriptorContext, Type)

Determines whether an InputScope object can be converted to an object of a specified type.

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public override bool CanConvertTo(
	ITypeDescriptorContext context,
	Type destinationType
)
You cannot use methods in XAML.

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

An object that describes any type descriptor context. This object must implement the ITypeDescriptorContext interface. This parameter may be null.

destinationType
Type: System.Type

A Type to check for conversion compatibility.

Return Value

Type: System.Boolean
true if conversion to the specified type is possible; otherwise, false.

Currently, the only supported destination type is string.

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
Show: