MobileTypeNameConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)
.NET Framework 2.0
Note: This method is new in the .NET Framework version 2.0.
Converts the given value object to the specified type, using the specified context and culture information.
Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)
Assembly: System.Web.Mobile (in system.web.mobile.dll)
public: virtual Object^ ConvertTo ( ITypeDescriptorContext^ ctx, CultureInfo^ ci, Object^ value, Type^ targetType ) override
public Object ConvertTo ( ITypeDescriptorContext ctx, CultureInfo ci, Object value, Type targetType )
public override function ConvertTo ( ctx : ITypeDescriptorContext, ci : CultureInfo, value : Object, targetType : Type ) : Object
Parameters
- ctx
An ITypeDescriptorContext that provides a format context.
- ci
A CultureInfo. If a null reference (Nothing in Visual Basic) is passed, the current culture is assumed.
- value
The Object to convert.
- targetType
The Type to convert the value parameter to.
Return Value
An Object that represents the converted value.This implementation of ConvertTo uses the as operator to convert the value to a Type, and then returns the FullName property of that object.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: