←Select platform

CanConvertTo Method

Summary

Returns a value indicating whether this converter can convert an object to the given destination type using the context.

Syntax
C#
VB
C++
public override bool CanConvertTo( 
   ITypeDescriptorContext context, 
   Type destinationType 
) 
Public Overloads Overrides NotOverridable Function CanConvertTo( _ 
   ByVal context As ITypeDescriptorContext, _ 
   ByVal destinationType As Type _ 
) As Boolean 
public: 
bool CanConvertTo(  
   ITypeDescriptorContext^ context, 
   Type^ destinationType 
) override  

Parameters

context
An ITypeDescriptorContext that provides a format context.

destinationType
A type that represents the type to which you want to convert.

Return Value

true if this object can perform the conversion; otherwise, false.

Requirements

Target Platforms

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly