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. Always returns false.
Assembly: PresentationFramework (in PresentationFramework.dll)
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | sourceType is null. |
The ComponentResourceKey type should not use a type converter pathway to convert values (should use markup extensions instead). For this reason, the CanConvertFrom(ITypeDescriptorContext, Type) and CanConvertTo(ITypeDescriptorContext, Type) methods always return false. The ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) and ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) methods always throw an exception.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.