ResourceReferenceExpressionConverter.CanConvertTo Method (ITypeDescriptorContext, Type)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns a value that indicates whether the converter can convert a ResourceReferenceExpression object to the specified destination type.

Namespace:   System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.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

The type to convert to.

Return Value

Type: System.Boolean

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

Exception Condition
ArgumentNullException

destinationType is null.

.NET Framework
Available since 3.0
Return to top
Show: