Export (0) Print
Expand All

UnitConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Returns a value indicating whether the unit converter can convert from the specified source type.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public override bool CanConvertFrom (
	ITypeDescriptorContext context,
	Type sourceType
)
public boolean CanConvertFrom (
	ITypeDescriptorContext context, 
	Type sourceType
)
public override function CanConvertFrom (
	context : ITypeDescriptorContext, 
	sourceType : Type
) : boolean

Parameters

context

An ITypeDescriptorContext instance that specifies the context of the object to convert.

sourceType

The type of the source.

Return Value

true if the source type can be converted from; otherwise, false.

Windows 98, Windows 2000 SP4, 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.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft