GeoCoordinateCollectionConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns a value that indicates to the caller whether the specified type can be converted to GeoCoordinate.
Namespace: Microsoft.Phone.Maps.Controls
Assembly: Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)
Syntax
Public Overrides Function CanConvertFrom ( _
context As ITypeDescriptorContext, _
sourceType As Type _
) As Boolean
public override bool CanConvertFrom(
ITypeDescriptorContext context,
Type sourceType
)
Parameters
- context
Type: System.ComponentModel..::.ITypeDescriptorContext
Specifies the type context.
- sourceType
Type: System..::.Type
Type to convert to GeoCoordinate.
Return Value
Type: System..::.Boolean
true if the specified type can be converted to GeoCoordinate; otherwise, false.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0