ComponentConverter.GetPropertiesSupported(ITypeDescriptorContext) Metodo

Definizione

Ottiene un valore che indica se l'oggetto supporta le proprietà utilizzando il contesto specificato.

public:
 override bool GetPropertiesSupported(System::ComponentModel::ITypeDescriptorContext ^ context);
public override bool GetPropertiesSupported (System.ComponentModel.ITypeDescriptorContext context);
public override bool GetPropertiesSupported (System.ComponentModel.ITypeDescriptorContext? context);
override this.GetPropertiesSupported : System.ComponentModel.ITypeDescriptorContext -> bool
Public Overrides Function GetPropertiesSupported (context As ITypeDescriptorContext) As Boolean

Parametri

context
ITypeDescriptorContext

Oggetto ITypeDescriptorContext che fornisce un contesto di formato.

Restituisce

true perché è necessario chiamare il metodo GetProperties(Object) per individuare le proprietà dell'oggetto. Questo metodo non restituisce mai false.

Commenti

Il parametro context può essere utilizzato per ottenere ulteriori informazioni sull'ambiente dal quale viene richiamato il convertitore. Dal momento che può essere null, è preferibile eseguire sempre un controllo. Anche le proprietà dell'oggetto di contesto possono restituire null.

Si applica a