This documentation is archived and is not being maintained.

ComponentResourceKeyConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

Determines whether an object of the specified type can be converted to an instance of ComponentResourceKey, using the specified context.

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

public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)
You cannot use methods in XAML.

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

A format context that provides information about the environment from which this converter is being invoked.

sourceType
Type: System.Type

The type being evaluated for conversion.

Return Value

Type: System.Boolean

ExceptionCondition
ArgumentNullException

sourceType is null.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: