This documentation is archived and is not being maintained.

BaseEnumStringConverter<T>.CanConvertFrom Method (ITypeDescriptorContext, Type)

Gets a value that indicates whether this converter can convert an object in the given source type to a string that uses the specified context.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType


Type: System.ComponentModel.ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
Type: System.Type
A Type that represents the type from which you want to convert.

Return Value

Type: System.Boolean
true if this converter can perform the conversion; otherwise, false.