Leadtools.Dicom.Common Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method
See Also 
Leadtools.Dicom.Common.Editing.Converters Namespace > PersonNameListConverter Class > ConvertTo Method : ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method



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.
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.
Converts the given value object to the specified type, using the specified context and culture information.

Syntax

Visual Basic (Declaration) 
Overloads Overrides Public Function ConvertTo( _
   ByVal context As ITypeDescriptorContext, _
   ByVal culture As CultureInfo, _
   ByVal value As Object, _
   ByVal destinationType As Type _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As PersonNameListConverter
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)
C# 
public override object ConvertTo( 
   ITypeDescriptorContext context,
   CultureInfo culture,
   object value,
   Type destinationType
)
C++/CLI 
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.ArgumentNullException The parameter is null.
System.NotSupportedException The conversion cannot be performed.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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