ComponentOne Basic Library for WPF and Silverlight
ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method


C1.Silverlight Namespace > CommandConverter Class > ConvertTo Method : ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type) Method
A format context that provides information about the environment from which this converter is being invoked.
Culture specific information.
The object to convert.
The type to convert the object to.
Attempts to convert an ICommand to the specified type.
Syntax
'Declaration
 
Public Overloads Overrides NotOverridable Function ConvertTo( _
   ByVal context As System.ComponentModel.ITypeDescriptorContext, _
   ByVal culture As System.Globalization.CultureInfo, _
   ByVal value As System.Object, _
   ByVal destinationType As System.Type _
) As System.Object
'Usage
 
Dim instance As CommandConverter
Dim context As System.ComponentModel.ITypeDescriptorContext
Dim culture As System.Globalization.CultureInfo
Dim value As System.Object
Dim destinationType As System.Type
Dim value As System.Object
 
value = instance.ConvertTo(context, culture, value, destinationType)
public override System.object ConvertTo( 
   System.ComponentModel.ITypeDescriptorContext context,
   System.Globalization.CultureInfo culture,
   System.object value,
   System.Type destinationType
)

Parameters

context
A format context that provides information about the environment from which this converter is being invoked.
culture
Culture specific information.
value
The object to convert.
destinationType
The type to convert the object to.

Return Value

The converted object, or an empty string if value is null.
See Also

Reference

CommandConverter Class
CommandConverter Members
Overload List