CultureInfoIetfLanguageTagConverter.ConvertFrom 方法

定义

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

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ source);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object source);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (typeDescriptorContext As ITypeDescriptorContext, cultureInfo As CultureInfo, source As Object) As Object

参数

typeDescriptorContext
ITypeDescriptorContext

ITypeDescriptorContext 值。

cultureInfo
CultureInfo

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

source
Object

正在转换的 Type

返回

CultureInfo 对象。

适用于