TypeConverter.CanConvertTo 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 변환기가 개체를 지정된 형식으로 변환할 수 있는지 여부를 반환합니다.
오버로드
| Name | Description |
|---|---|
| CanConvertTo(Type) |
이 변환기가 개체를 지정된 형식으로 변환할 수 있는지 여부를 반환합니다. |
| CanConvertTo(ITypeDescriptorContext, Type) |
이 변환기가 지정된 컨텍스트를 사용하여 개체를 지정된 형식으로 변환할 수 있는지 여부를 반환합니다. |
CanConvertTo(Type)
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
이 변환기가 개체를 지정된 형식으로 변환할 수 있는지 여부를 반환합니다.
public:
bool CanConvertTo(Type ^ destinationType);
public bool CanConvertTo(Type? destinationType);
public bool CanConvertTo(Type destinationType);
member this.CanConvertTo : Type -> bool
Public Function CanConvertTo (destinationType As Type) As Boolean
매개 변수
반품
설명
문자열인 경우 destinationType 기본 구현은 CanConvertTo 항상 .를 반환합니다 true.
적용 대상
CanConvertTo(ITypeDescriptorContext, Type)
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
- Source:
- TypeConverter.cs
이 변환기가 지정된 컨텍스트를 사용하여 개체를 지정된 형식으로 변환할 수 있는지 여부를 반환합니다.
public:
virtual bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public virtual bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, Type? destinationType);
public virtual bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
abstract member CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overridable Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean
매개 변수
- context
- ITypeDescriptorContext
ITypeDescriptorContext 형식 컨텍스트를 제공하는 항목입니다.
반품
설명
매개 변수를 context 사용하여 이 변환기가 호출되는 환경에 대한 추가 정보를 추출합니다. 이 매개 변수는 될 null수 있으므로 항상 확인합니다. 또한 컨텍스트 개체의 속성은 반환 null할 수 있습니다.
문자열인 경우 destinationType 기본 구현은 CanConvertTo 항상 .를 반환합니다 true.
상속자 참고
사용자 고유의 변환 요구 사항을 제공하도록 이 메서드를 재정의합니다.