Click or drag to resize

MongoUrlTypeConverterCanConvertFrom Method (ITypeDescriptorContext, Type)

Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)

Parameters

context
Type: System.ComponentModelITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
sourceType
Type: SystemType
A Type that represents the type you want to convert from.

Return Value

Type: Boolean
if this converter can perform the conversion; otherwise, .
See Also