ActivityBindTypeConverter.ConvertTo Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Konverterar det angivna ActivityBind objektet till den angivna typen med den angivna kontexten och kulturen.
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
Det ITypeDescriptorContext som ger en formatkontext.
- culture
- CultureInfo
Till CultureInfo vilken ActivityBind konverteras.
- value
- Object
Att ActivityBind konvertera.
- destinationType
- Type
Att Type konvertera ActivityBind till.
Returer
Det konverterade objektet.
Kommentarer
ConvertTo konverterar en ActivityBind till en sträng.
context kan användas för att extrahera ytterligare information om miljön som konverteraren anropas från. Detta kan vara en null-referens (Nothing i Visual Basic), så kontrollera alltid. Dessutom kan egenskaperna för context objektet returnera en null-referens (Nothing).