Windows apps
Collapse the table of content
Expand the table of content
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.

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


Type: System.ComponentModel.ITypeDescriptorContext

The ITypeDescriptorContext that provides a format context.

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
© 2017 Microsoft