语言

DialogResultConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定义

DialogResultConverter 不支持从 DialogResult ( Nullable<T> 类型值) Boolean转换为其他类型的值。

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ destinationType);
public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (typeDescriptorContext As ITypeDescriptorContext, destinationType As Type) As Boolean

参数

typeDescriptorContext
ITypeDescriptorContext

提供格式上下文的 A ITypeDescriptorContext 。

destinationType
Type

一个 Type 表示要转换为的类型。

返回

始终返回的Boolean一个 false 。

适用于

另请参阅