Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
virtual bool CanConvertFrom(
	ITypeDescriptorContext^ context,
	Type^ sourceType
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

An ITypeDescriptorContext that provides a format context.

sourceType
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.

Return to top
Show: