DateTimeOffsetConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

傳回值,這個值表示是否可將 DateTimeOffset 轉換成指定之型別的物件。

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

參數

context
ITypeDescriptorContext

日期格式內容。

destinationType
Type

要檢查的目的型別。

傳回

如果 DateTimeOffset 可轉換為指定的型別,則為 true,否則為 false

適用於