LocationCollectionConverter.CanConvertFrom Method
This documentation is no longer available on MSDN, however it is available as a CHM download.
Determines whether the given type can be converted to a LocationCollection.
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.
Remarks
The sourceType is a String and must be formatted as "lat,lon lat,lon" or “lat,lon,alt lat,lon,alt” if specifying an altitude. You cannot have spaces between the latitude, longitude or altitude values. (E.g. “38.129,-87.124 43.113,-120.144” contains two locations.)
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
LocationCollectionConverter Class
LocationCollectionConverter Members
Microsoft.Maps.MapControl.Design Namespace