ActivityBindTypeConverter.ConvertTo Metódus

Definíció

A megadott ActivityBind objektumot a megadott típusúvá alakítja a megadott környezet és kultúra használatával.

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

Paraméterek

context
ITypeDescriptorContext

Ez ITypeDescriptorContext egy formátumkörnyezetet biztosít.

culture
CultureInfo

Az CultureInfo , amelybe a rendszer átalakítja a ActivityBind rendszer.

value
Object

Az ActivityBind átalakítandó.

destinationType
Type

Az Type átalakítandó ActivityBind .

Válaszok

A konvertált objektum.

Megjegyzések

ConvertTo sztringgé ActivityBind alakít át.

context segítségével további információkat nyerhet ki arról a környezetről, amelyből a konverter meghívása történik. Ez lehet null hivatkozás (Nothing Visual Basic), ezért mindig ellenőrizze. Az objektum tulajdonságai context nullhivatkozást (Nothing) is visszaadhatnak.

A következőre érvényes: