DurationConverter.CanConvertTo(ITypeDescriptorContext, Type) DurationConverter.CanConvertTo(ITypeDescriptorContext, Type) DurationConverter.CanConvertTo(ITypeDescriptorContext, Type) DurationConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

定義

判斷是否可轉換為指定的型別。Determines if conversion to a specified type is possible.

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

參數

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

用於轉換的內容資訊。Context information used for conversion.

destinationType
Type Type Type Type

正在評估以進行轉換的型別。Type being evaluated for conversion.

傳回

如果 true 屬於類型 destinationType,則為 String,否則為 falsetrue if destinationType is of type String; otherwise, false.

適用於