ExpressionConverter.ConvertTo Metod

Definition

Konverterar det angivna Expression objektet till den angivna typen.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
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

Parametrar

context
ITypeDescriptorContext

En ITypeDescriptorContext som ger en formatkontext.

culture
CultureInfo

Att CultureInfo använda som den aktuella kulturen.

value
Object

Objektet som ska konverteras.

destinationType
Type

En Type som representerar den typ som du vill konvertera till.

Returer

Genererar alltid ett undantag och returnerar null.

Gäller för