←Select platform

ConvertTo Method

Summary

Converts the specified object to another type.

Syntax
C#
VB
C++
public override object ConvertTo( 
   ITypeDescriptorContext context, 
   CultureInfo culture, 
   object value, 
   Type destinationType 
) 
Public Overloads Overrides NotOverridable Function ConvertTo( _ 
   ByVal context As ITypeDescriptorContext, _ 
   ByVal culture As CultureInfo, _ 
   ByVal value As Object, _ 
   ByVal destinationType As Type _ 
) As Object 
public: 
Object^ ConvertTo(  
   ITypeDescriptorContext^ context, 
   CultureInfo^ culture, 
   Object^ value, 
   Type^ destinationType 
) override  

Parameters

context
A formatter context. Use this object to extract additional information about the environment from which this converter is being invoked. Always check whether this value is null. Also, properties on the context object may return null.

culture
A CultureInfo that specifies the culture to represent the object.

value
The object to convert.

destinationType
The type to convert the object to.

Return Value

An Object representing the converted value.

Requirements

Target Platforms

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly