NameReferenceConverter::CanConvertTo Method (ITypeDescriptorContext^, Type^)
Returns a value that indicates whether the converter can convert an object to the specified destination type.
Assembly: System.Xaml (in System.Xaml.dll)
public: virtual bool CanConvertTo( ITypeDescriptorContext^ context, Type^ destinationType ) override
Parameters
- context
-
Type:
System.ComponentModel::ITypeDescriptorContext^
An ITypeDescriptorContext that provides a format context.
- destinationType
-
Type:
System::Type^
The type to convert to.
Return Value
Type: System::Booleantrue if the converter can perform the conversion; otherwise, false.
A destinationType that references the String type returns true; all other destinationType values return false.
This method returns false if context is null, or if IXamlNameProvider cannot be obtained as a service from context.
Available since 4.0