Leadtools.Dicom.Common

ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method

Show in webframe





An System.ComponentModel.ITypeDescriptorContext that provides a format context.
A System.Globalization.CultureInfo. If null is passed, the current culture is assumed.
The System.Object to convert.
The System.Type to convert the value parameter to.
Converts the given value object to the specified type, using the specified context and culture information.
Syntax
public override object ConvertTo( 
   ITypeDescriptorContext context,
   CultureInfo culture,
   object value,
   Type destinationType
)
'Declaration
 
Public Overloads Overrides Function ConvertTo( _
   ByVal context As ITypeDescriptorContext, _
   ByVal culture As CultureInfo, _
   ByVal value As Object, _
   ByVal destinationType As Type _
) As Object
'Usage
 
Dim instance As ListTypeConverter
Dim context As ITypeDescriptorContext
Dim culture As CultureInfo
Dim value As Object
Dim destinationType As Type
Dim value As Object
 
value = instance.ConvertTo(context, culture, value, destinationType)

            

            
public:
Object^ ConvertTo( 
   ITypeDescriptorContext^ context,
   CultureInfo^ culture,
   Object^ value,
   Type^ destinationType
) override 

Parameters

context
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
culture
A System.Globalization.CultureInfo. If null is passed, the current culture is assumed.
value
The System.Object to convert.
destinationType
The System.Type to convert the value parameter to.

Return Value

An System.Object that represents the converted value.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe destinationType parameter is null.
System.NotSupportedException The conversion cannot be performed.
Requirements

Target Platforms

See Also

Reference

ListTypeConverter Class
ListTypeConverter Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Dicom.Common requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features