Aracılığıyla paylaş


VisualBasicSettingsConverter.ConvertTo Yöntem

Tanım

Bir VisualBasicSettings örneği belirtilen türe dönüştürür.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

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

Parametreler

context
ITypeDescriptorContext

Dönüştürme için kullanılan bağlam bilgileri.

culture
CultureInfo

İsteğe bağlı CultureInfobir . Sağlanmazsa geçerli kültür varsayılır.

value
Object

Dönüştürülecek VisualBasicSettings örnek.

destinationType
Type

Dönüştürülecek tür.

Döndürülenler

Dönüştürülen değer.

Açıklamalar

Dönüştürme, temel sınıf yöntemi ConvertToçağrılarak yapılır. Dönüştürme yapılamıyorsa, bir NotSupportedException oluşturulur.

Şunlara uygulanır