Język

ImageSourceConverter.ConvertFrom Metoda

Definicja

Próbuje przekonwertować określony obiekt na wystąpienie ImageSourceklasy .

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

Parametry

context
ITypeDescriptorContext

Wpisz informacje kontekstowe używane do konwersji.

culture
CultureInfo

Informacje kulturowe, które są przestrzegane podczas konwersji.

value
Object

Konwertowany obiekt.

Zwraca

Nowe wystąpienie klasy ImageSource.

Atrybuty

Wyjątki

value jest null nieprawidłowym typem.

Dotyczy