RasDeviceTypeConverter.CanConvertTo Method (ITypeDescriptorContext, Type)

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
Returns whether this converter can convert the object to the specified type, using the specified context.

Namespace: DotRas
Assembly: DotRas (in DotRas.dll) Version: 1.3.5166.33435 (1.3.0.0)

Syntax

C#
public override bool CanConvertTo(
	ITypeDescriptorContext context,
	Type destinationType
)
Visual Basic
Public Overrides Function CanConvertTo ( 
	context As ITypeDescriptorContext,
	destinationType As Type
) As Boolean
Visual C++
public:
virtual bool CanConvertTo(
	ITypeDescriptorContext^ context, 
	Type^ destinationType
) override
F#
abstract CanConvertTo : 
        context : ITypeDescriptorContext * 
        destinationType : Type -> bool 
override CanConvertTo : 
        context : ITypeDescriptorContext * 
        destinationType : Type -> bool 

Parameters

context
Type: System.ComponentModel..::..ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
destinationType
Type: System..::..Type
A Type that represents the type you want to convert to.

Return Value

Type: Boolean
true if this converter can perform the conversion, otherwise false.

See Also