Converts the given value object to the specified type, using the specified context and culture information.

C# | Visual Basic | Visual C++ |
public override Object ConvertTo( ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType )
Public Overrides Function ConvertTo ( _ context As ITypeDescriptorContext, _ culture As CultureInfo, _ value As Object, _ destinationType As Type _ ) As Object
public: virtual Object^ ConvertTo( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value, Type^ destinationType ) override

- context (ITypeDescriptorContext)
- An ITypeDescriptorContext that provides a format context.
- culture (CultureInfo)
- A CultureInfo. If null is passed, the current culture is assumed.

An Object that represents the converted value.

Exception | Condition |
---|---|
ArgumentNullException |
The destinationType parameter is null.
|
NotSupportedException |
The conversion cannot be performed.
|

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)