←Select platform

ConvertTo Method

Summary
Converts the specified object to another type.
Syntax
C#
C++/CLI
Python
public override object ConvertTo( 
   ITypeDescriptorContext context, 
   CultureInfo culture, 
   object value, 
   Type destinationType 
) 
public: 
Object^ ConvertTo(  
   ITypeDescriptorContext^ context, 
   CultureInfo^ culture, 
   Object^ value, 
   Type^ destinationType 
) override  
def ConvertTo(self,context,culture,value,destinationType): 

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 22.0.2023.5.16
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.