共用方式為


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 或無效的型別。

適用於