LengthConverter.CanConvertFrom(ITypeDescriptorContext, Type) 메서드

정의

지정된 형식을 개체의 길이를 나타내는 Double로 변환할 수 있는지 확인합니다.

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

매개 변수

typeDescriptorContext
ITypeDescriptorContext

구성 요소에 대한 컨텍스트 정보를 제공합니다.

sourceType
Type

변환할 수 있는지 확인할 데이터 형식을 식별합니다.

반환

변환이 가능하면 true이고, 그렇지 않으면 false입니다.

설명

LengthConverter에서는 , , , SingleDecimalInt64UInt32DoubleInt16Int32UInt16UInt64형식String으로의 변환을 지원합니다.

적용 대상