XamlTypeTypeConverter::CanConvertTo Method (ITypeDescriptorContext^, Type^)

.NET Framework (current version)
 

Determines whether an instance of XamlType can be converted to the specified type, using the specified context.

Namespace:   System.Xaml.Schema
Assembly:  System.Xaml (in System.Xaml.dll)

public:
virtual bool CanConvertTo(
	ITypeDescriptorContext^ context,
	Type^ destinationType
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

A format context that provides information about the environment from which this converter is being invoked.

destinationType
Type: System::Type^

The type being evaluated for conversion.

Return Value

Type: System::Boolean

true if this converter can perform the operation; otherwise, false.

The XamlTypeTypeConverter class only converts an instance of XamlType to and from a String (or XamlType). Other destinationType inputs return false.

.NET Framework
Available since 4.0
Return to top
Show: