Leadtools.Dicom.Common Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ConvertFrom(ITypeDescriptorContext,CultureInfo,Object) Method
See Also 
Leadtools.Dicom.Common.Editing.Converters Namespace > ShortDateTypeConverter Class > ConvertFrom Method : ConvertFrom(ITypeDescriptorContext,CultureInfo,Object) 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.
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.
Converts the given value object from the specified type, using the specified context and culture information.

Syntax

Visual Basic (Declaration) 
Overloads Overrides Public Function ConvertFrom( _
   ByVal context As ITypeDescriptorContext, _
   ByVal culture As CultureInfo, _
   ByVal value As Object _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As ShortDateTypeConverter
Dim context As ITypeDescriptorContext
Dim culture As CultureInfo
Dim value As Object
Dim value As Object
 
value = instance.ConvertFrom(context, culture, value)
C# 
public override object ConvertFrom( 
   ITypeDescriptorContext context,
   CultureInfo culture,
   object value
)
C++/CLI 
public:
Object^ ConvertFrom( 
   ITypeDescriptorContext^ context,
   CultureInfo^ culture,
   Object^ value
) 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.

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