CanConvertTo Method (ITypeDescriptorContext, Type)
Collapse the table of content
Expand the table of content

UriTypeConverter.CanConvertTo Method (ITypeDescriptorContext, Type)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns whether this converter can convert the object to the specified type, using the specified context.

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

public override bool CanConvertTo(
	ITypeDescriptorContext context,
	Type destinationType
)

Parameters

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

Return Value

Type: System.Boolean
A Boolean value that is true if destinationType is of type String, or Uri; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft