Επεξεργασία

Κοινή χρήση μέσω


DateTimeOffsetConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Definition

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

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

Parameters

context
ITypeDescriptorContext

The date format context.

sourceType
Type

The source type to check.

Returns

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

Applies to