ImageIndexConverter.ConvertFrom Metod

Definition

Konverterar det angivna värdeobjektet till ett 32-bitars signerat heltalsobjekt.

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);
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

Parametrar

context
ITypeDescriptorContext

En ITypeDescriptorContext som ger en formatkontext.

culture
CultureInfo

A CultureInfo för att ange språkinformation.

value
Object

Att Object konvertera.

Returer

En Object som representerar den konverterade value.

Undantag

Konverteringen kunde inte utföras.

Kommentarer

Den här typkonverteraren kan bara konvertera ett 32-bitars signerat heltalsobjekt till och från en sträng.

context Kan användas för att extrahera ytterligare information om miljön som den här typkonverteraren anropas från. Detta kan vara null, så du bör alltid kontrollera. Dessutom kan egenskaper för kontextobjektet också returnera null.

Gäller för

Se även