RasDialOptionsConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

DotRas SDK

Collapse image Expand Image Copy image CopyHover image
Indicates whether this converter can convert an object of a given type to the type of this converter.

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

Syntax

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

Parameters

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

Return Value

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

See Also