CultureInfoIetfLanguageTagConverter.ConvertTo 方法

定义

CultureInfo 对象转换为给定对象类型。

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

参数

typeDescriptorContext
ITypeDescriptorContext

ITypeDescriptorContext 值。

cultureInfo
CultureInfo

CultureInfo 对象,在转换过程中将考虑其值。

value
Object

表示要转换的 CultureInfo 的对象。

destinationType
Type

返回的已转换对象的 Type

返回

Object

转换为给定对象类型的 CultureInfo 对象。

属性

适用于