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

定義

取得可指示此轉換子是否可將 XName 執行個體轉換成指定型別物件的值。Gets a value that indicates whether this converter can convert an XName instance to an object of the specified type.

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

型別描述項內容。The type descriptor context.

destinationType
Type Type Type Type

要轉換的目標類型。The type to convert to.

傳回

如果這個轉換器可以執行轉換,則為 true,否則為 falsetrue if the converter can perform the conversion; otherwise, false.

適用於