PixelFormatConverter.ConvertTo Methode

Definition

Versucht, eine Instanz von PixelFormat in einen angegebenen Typ zu konvertieren.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
[<System.Security.SecurityCritical>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object

Parameter

context
ITypeDescriptorContext

Die für die Konvertierung verwendeten Kontextinformationen.

culture
CultureInfo

Kulturinformationen, die während der Konvertierung beachtet werden.

value
Object

Eine zu konvertierende PixelFormat.

destinationType
Type

Der Typ, der für die Konvertierung ausgewertet wird.

Gibt zurück

Object

Eine neue Instanz der destinationType.

Attribute

Ausnahmen

value ist null oder kein gültiger Typ.

Gilt für