Vector3DCollectionConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) 方法

定义

尝试将 Vector3DCollection 实例转换为给定类型。Attempts to convert an instance of Vector3DCollection to the given type.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

参数

context
ITypeDescriptorContext

此调用的 ITypeDescriptorContext。The ITypeDescriptorContext for this call.

culture
CultureInfo

转换时遵守的 CultureInfo。The CultureInfo which is respected when converting.

value
Object

要转换成 destinationType 实例的对象。The object to convert to an instance of destinationType.

destinationType
Type

Matrix3D 实例将转换成的类型。The type to which the Matrix3D instance will be converted.

返回

Object

已构造的对象。The object which was constructed.

例外

如果此示例对象为 null 或不是 Vector3DCollection,或者如果 destinationType 不是有效目标类型之一,则将引发 NotSupportedException 异常。Throws NotSupportedException if the example object is null or is not a Vector3DCollection, or if the destinationType isn't one of the valid destination types.

适用于