PropertyPathConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

 

Returns whether this converter can convert an object of one type to the PropertyPath type.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public override bool CanConvertFrom(
	ITypeDescriptorContext typeDescriptorContext,
	Type sourceType
)

Parameters

typeDescriptorContext
Type: System.ComponentModel.ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

sourceType
Type: System.Type

A Type that represents the type you want to convert from.

Return Value

Type: System.Boolean

true if sourceType is type String; otherwise, false.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: