Vector3DCollectionConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) 方法

定义

尝试从给定对象转换为一个 Vector3DCollectionAttempts to convert to a Vector3DCollection from the given object.

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

参数

context
ITypeDescriptorContext

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

culture
CultureInfo

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

value
Object

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

返回

Object

已构造的 Vector3DCollection。Vector3DCollection that was constructed.

例外

如果示例对象为 null 或者不是可以转换为 Vector3DCollection 的有效类型,则引发 NotSupportedException 异常。A NotSupportedException is thrown if the example object is null or is not a valid type which can be converted to a Vector3DCollection.

适用于