TypeConverter.GetPropertiesSupported Metodo

Definizione

Indica se questo oggetto supporta le proprietà.

Overload

GetPropertiesSupported(ITypeDescriptorContext)

Indica se questo oggetto supporta proprietà, usando il contesto specificato.

GetPropertiesSupported()

Indica se questo oggetto supporta le proprietà.

GetPropertiesSupported(ITypeDescriptorContext)

Origine:
TypeConverter.cs
Origine:
TypeConverter.cs
Origine:
TypeConverter.cs

Indica se questo oggetto supporta proprietà, usando il contesto specificato.

C#
public virtual bool GetPropertiesSupported (System.ComponentModel.ITypeDescriptorContext context);
C#
public virtual bool GetPropertiesSupported (System.ComponentModel.ITypeDescriptorContext? context);

Parametri

context
ITypeDescriptorContext

Oggetto ITypeDescriptorContext che fornisce un contesto di formato.

Restituisce

true se è necessario chiamare GetProperties(Object) per individuare le proprietà dell'oggetto. In caso contrario, false.

Commenti

Per come è implementato in questa classe, il metodo restituisce sempre false.

Note per gli eredi

Eseguire l'override di questo metodo se il tipo da convertire supporta le proprietà.

Utilizzare il parametro context per estrarre ulteriori informazioni sull'ambiente dal quale viene richiamato il convertitore. Questo parametro può essere null, quindi controllarlo sempre. Anche le proprietà dell'oggetto di contesto possono restituire null.

Vedi anche

Si applica a

.NET 9 e altre versioni
Prodotto Versioni
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.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
.NET Standard 2.0, 2.1

GetPropertiesSupported()

Origine:
TypeConverter.cs
Origine:
TypeConverter.cs
Origine:
TypeConverter.cs

Indica se questo oggetto supporta le proprietà.

C#
public bool GetPropertiesSupported ();

Restituisce

true se è necessario chiamare GetProperties(Object) per individuare le proprietà dell'oggetto. In caso contrario, false.

Commenti

Per come è implementato in questa classe, il metodo restituisce sempre false.

Si applica a

.NET 9 e altre versioni
Prodotto Versioni
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.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
.NET Standard 2.0, 2.1