Bewerken

Share via


DateTimeOffsetConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

Definition

Returns a value that indicates whether a DateTimeOffset can be converted to an object of the specified type.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext? context, Type? destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean

Parameters

context
ITypeDescriptorContext

The date format context.

destinationType
Type

The destination type to check.

Returns

true if a DateTimeOffset can be converted to the specified type; otherwise, false.

Applies to