ImageSourceConverter.ConvertFrom 方法

定义

试图将指定对象转换为 ImageSource 实例。

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
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

键入用于转换的上下文信息。

culture
CultureInfo

转换过程中需要考虑的区域性信息。

value
Object

要转换的对象。

返回

Object

ImageSource 的新实例。

属性

例外

valuenull 或者是无效类型。

适用于