共用方式為


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

傳回

已轉換為指定之物件型別的 CultureInfo 物件。

屬性

適用於