ServiceClientFactoryConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

Checks whether or not the component can be converted to the specified type.

Namespace: DevExpress.ReportServer.ServiceModel.Client

Assembly: DevExpress.Printing.v20.1.Core.dll

Declaration

public override bool CanConvertTo(
    ITypeDescriptorContext context,
    Type destinationType
)
Public Overrides Function CanConvertTo(
    context As ITypeDescriptorContext,
    destinationType As Type
) As Boolean

Parameters

Name Type Description
context ITypeDescriptorContext

An object implementing the ITypeDescriptorContext interface.

destinationType Type

A Type enumeration value.

Returns

Type Description
Boolean

true if the valid conversion is possible; otherwise false.

Remarks

Use the CanConvertTo method to check the validity of an intended operation before calling the ServiceClientFactoryConverter.ConvertTo method.

See Also