- 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.
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 DicomAgeValueConverter 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.Exception | Description |
---|---|
System.ArgumentNullException | The parameter is null. |
System.NotSupportedException | The conversion cannot be performed. |
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7