LocationConverter.CanConvertFrom Method
This documentation is no longer available on MSDN, however it is available as a CHM download.
Determines whether or not the given type can be converted to a Location.
Namespace: Microsoft.Maps.MapControl.Design
Assembly: Microsoft.Maps.MapControl.Common (in Microsoft.Maps.MapControl.Common.dll)
Usage
Syntax
'Declaration
Public Overrides Function CanConvertFrom ( _
context As ITypeDescriptorContext, _
sourceType As Type _
) As Boolean
public override bool CanConvertFrom (
ITypeDescriptorContext context,
Type sourceType
)
public:
virtual bool CanConvertFrom (
ITypeDescriptorContext^ context,
Type^ sourceType
) override
public boolean CanConvertFrom (
ITypeDescriptorContext context,
Type sourceType
)
public override function CanConvertFrom (
context : ITypeDescriptorContext,
sourceType : Type
) : boolean
Parameters
- context
The format context provider of the type.
- sourceType
The object type from which to convert.
Return Value
Returns Boolean.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Target Platforms
See Also
Reference
LocationConverter Class
LocationConverter Members
Microsoft.Maps.MapControl.Design Namespace