ResXFileRef.Converter.CanConvertFrom(ITypeDescriptorContext, Type) Metodo

Definizione

Restituisce un valore che indica se il convertitore può convertire un oggetto del tipo specificato nel tipo di questo convertitore, usando il contesto specificato.

C#
public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext context, Type sourceType);
C#
public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext? context, Type sourceType);

Parametri

context
ITypeDescriptorContext

Oggetto ITypeDescriptorContext che fornisce un contesto di formato.

sourceType
Type

Oggetto Type che rappresenta il tipo da cui eseguire la conversione.

Restituisce

true se il convertitore può eseguire la conversione. In caso contrario, false.

Si applica a

Prodotto Versioni
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

Vedi anche