ComponentResourceKeyConverter.CanConvertTo(ITypeDescriptorContext, Type) 메서드
정의
지정한 컨텍스트를 사용하여 ComponentResourceKey의 인스턴스를 지정한 형식으로 변환할 수 있는지 여부를 확인합니다.Determines whether an instance of ComponentResourceKey can be converted to the specified type, using the specified context. 항상 false
를 반환합니다.Always returns false
.
이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.
public:
override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
abstract member CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean
매개 변수
- context
- ITypeDescriptorContext
이 변환기가 호출되는 환경에 대한 정보를 제공하는 형식 컨텍스트입니다.A format context that provides information about the environment from which this converter is being invoked.
- destinationType
- Type
변환을 위해 확인하는 형식입니다.The type being evaluated for conversion.
반환
모든 경우에 false
입니다.false
in all cases.
예외
destinationType
이(가) null
인 경우destinationType
is null
.
설명
ComponentResourceKey 형식 (확장을 사용 해야 태그 대신) 값을 변환 하는 형식 변환기가 경로 사용 하지 않아야 합니다.The ComponentResourceKey type should not use a type converter pathway to convert values (should use markup extensions instead). 이러한 이유로 합니다 CanConvertFrom(ITypeDescriptorContext, Type) 하 고 CanConvertTo(ITypeDescriptorContext, Type) 메서드는 항상 반환 false
합니다.For this reason, the CanConvertFrom(ITypeDescriptorContext, Type) and CanConvertTo(ITypeDescriptorContext, Type) methods always return false
. 합니다 ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) 고 ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) 메서드는 항상 예외를 throw 합니다.The ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) and ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) methods always throw an exception.