Aracılığıyla paylaş


DynamicResourceExtensionConverter.ConvertTo Yöntem

Tanım

Belirtilen nesneyi başka bir türe dönüştürür.

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

Parametreler

context
ITypeDescriptorContext

Biçim ITypeDescriptorContext bağlamı sağlayan bir nesne.

culture
CultureInfo

CultureInfo Sayıyı temsil eden kültürü belirten bir nesne.

value
Object

Dönüştürülecek değer. Bunun türünde DynamicResourceExtensionolması beklenir.

destinationType
Type

Dönüştürülmesi gereken tür.

Döndürülenler

Object

Döndürülen dönüştürülen nesne. Bunu istenen türe dönüştür. Normalde bu öğesinin olarak InstanceDescriptoryayınlanması gerekir.

Öznitelikler

Özel durumlar

value, null değeridir.

Açıklamalar

destinationType türünde InstanceDescriptorolması beklenir; değilse, uygulama tabana (ConvertToözel durum oluşturabilen) geçer.

Şunlara uygulanır