Vector3DConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定義

判斷類別是否可從指定型別轉換成 Vector3D 結構的執行個體。Determines whether a class can be converted from a given type to an instance of a Vector3D structure.

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

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

sourceType
Type

正在評估以進行轉換之來源的型別。The type of the source that is being evaluated for conversion.

傳回

表示型別是否可以轉換成 Vector3D 結構。Indicates whether the type can be converted to a Vector3D structure.

Value 意義Meaning
Falsefalse 轉換子無法從提供的型別進行轉換。The converter cannot convert from the provided type.
truetrue 轉換子可以將提供的型別轉換為 Vector3DThe converter can convert the provided type to a Vector3D.

適用於