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

定義

判斷 Vector3D 結構的執行個體是否可以轉換為不同型別。Determines whether an instance of a Vector3D structure can be converted to a different 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

描述類型的內容資訊。Describes the context information of a type.

destinationType
Type Type Type Type

要評估這個 Vector3D 結構是否可以轉換到的型別。The desired type that this Vector3D structure is being evaluated for conversion.

傳回

表示這個 Vector3D 結構是否可以轉換為 destinationTypeIndicates whether this Vector3D structure can be converted to destinationType.

Value 意義Meaning
Falsefalse 轉換子無法將這個 Vector3D 結構轉換為指定的型別。The converter cannot convert this Vector3D structure to the specified type.
truetrue 轉換子可以將這個 Vector3D 結構轉換為指定的型別。The converter can convert this Vector3D structure to the specified type.

適用於