WorkflowIdentityConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定义

确定是否可将...转换成指定类型。Determines whether the specified type can be converted from.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext context, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (context As ITypeDescriptorContext, sourceType As Type) As Boolean

参数

context
ITypeDescriptorContext

用于转换的上下文信息。Context information that is used for conversion.

sourceType
Type

要转换的类型。The type to convert from.

返回

Boolean

如果可以将指定的类型从中转换,则为 true;否则为 falsetrue if the specified type can be converted from; otherwise, false.

适用于