ActivityBindTypeConverter::CanConvertFrom Method (ITypeDescriptorContext^, Type^)

 

Returns a value indicating whether this converter can convert an object of the given source type to an ActivityBind using the specified context.

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public:
virtual bool CanConvertFrom(
	ITypeDescriptorContext^ context,
	Type^ sourceType
) override

Parameters

context
Type: System.ComponentModel::ITypeDescriptorContext^

The ITypeDescriptorContext that provides a format context.

sourceType
Type: System::Type^

A Type that represents the type to convert.

Return Value

Type: System::Boolean

true if this converter can perform the conversion; otherwise, false.

CanConvertFrom returns true if sourceType is a string.

.NET Framework
Available since 3.0
Return to top
Show: