ConvertTo Method

Summary
Converts the given value object to the specified type, using the specified context and culture information.
Syntax
C#
C++/CLI
public override object ConvertTo( 
   ITypeDescriptorContext context, 
   CultureInfo culture, 
   object value, 
   Type destinationType 
) 
public: 
Object^ ConvertTo(  
   ITypeDescriptorContext^ context, 
   CultureInfo^ culture, 
   Object^ value, 
   Type^ destinationType 
) override  

Parameters

context
An ITypeDescriptorContext that provides a format context.

culture
A CultureInfo. If null is passed, the current culture is assumed.

value
The Object to convert.

destinationType
The Type to convert the  value parameter to.

Return Value

An Object that represents the converted value.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionThe destinationType parameter is null.
System.NotSupportedException The conversion cannot be performed.
Requirements

Target Platforms

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

Leadtools.Dicom.Common Assembly

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