Språk

KeySplineConverter.ConvertTo Metod

Definition

Försöker konvertera en KeySpline till en angiven typ.

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

Parametrar

context
ITypeDescriptorContext

Tillhandahåller sammanhangsbaserad information som krävs för konvertering.

cultureInfo
CultureInfo

Kulturell information att respektera under konverteringen.

value
Object

Att KeySpline konvertera.

destinationType
Type

Den typ som detta KeySpline ska konverteras till.

Returer

Objektet som skapades från konverteringen av detta KeySpline.

Attribut

Undantag

value är null eller inte är en KeySpline, eller destinationType är inte en av de giltiga typerna för konvertering.

Kommentarer

Använd metoden för att avgöra om en konvertering är möjlig utan att faktiskt utföra konverteringen CanConvertTo .

Gäller för