CultureInfoIetfLanguageTagConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

 

Converts a CultureInfo object to a given object type.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

<SecurityCriticalAttribute>
Public Overrides Function ConvertTo (
	typeDescriptorContext As ITypeDescriptorContext,
	cultureInfo As CultureInfo,
	value As Object,
	destinationType As Type
) As Object

Parameters

typeDescriptorContext
Type: System.ComponentModel.ITypeDescriptorContext

The ITypeDescriptorContext value.

cultureInfo
Type: System.Globalization.CultureInfo

The CultureInfo object whose value is respected during conversion.

value
Type: System.Object

The object that represents the CultureInfo to convert.

destinationType
Type: System.Type

The Type of the returned converted object.

Return Value

Type: System.Object

A converted CultureInfo object to a given object type.

.NET Framework
Available since 3.0
Return to top
Show: